InoDrive API library
Project description
Installation
pip install CK-InoDrive-API
Usage
Import
# Import InoDrive API library
import CkInoDriveAPI
Create InoDrive using WebSocket
# Create instance to InoDrive module object
# Connect by name
drive = CkInoDriveAPI.InoDrive(target='Name')
# Connect by serial number
drive = CkInoDriveAPI.InoDrive(target='SN')
# Connect by IP Address
drive = CkInoDriveAPI.InoDrive(target='IPv4 Address')
# Auto connect
drive = CkInoDriveAPI.InoDrive(target='IPv4 Address', autoConnect=True)
# Connect to the drive
drive.connect()
# Read variable with name 'VariableName'
drive.read_var('VariableName')
# Write variable with name 'VariableName' and value equal to 1
drive.write_var('VariableName', 1)
# Disconnect from the drive
drive.disconnect()
# Drive object cleanup
drive.destroy()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
CK-InoDrive-API-0.2.6.tar.gz
(17.0 kB
view hashes)
Built Distribution
Close
Hashes for CK_InoDrive_API-0.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8509a282896d26ad87b7ad2e48a4920c313ec60a73e9404a35d4f1c66a3da5e6 |
|
MD5 | ff8d1991d48d6537b15c7af45e50d161 |
|
BLAKE2b-256 | a21d3316b67fa8763420ac63076472248c4b78f64930b93af00aaa3633ef9765 |