Provides connection to the device via computer's USB port.
More...
Provides connection to the device via computer's USB port.
Construction of this class automatically opens connection to CyberAtom USB device. The connection is closed when the object is deleted (released).
| def cyberatom.UsbConnection.__init__ |
( |
|
self | ) |
|
- Note
- This constructor creates connection to first CyberAtom device found on USB device list.
| def cyberatom.UsbConnection.checkForMessages |
( |
|
self, |
|
|
|
receiver |
|
) |
| |
| def cyberatom.UsbConnection.create_WithSerial |
( |
|
cls, |
|
|
|
serialNumber |
|
) |
| |
Connects to USB device that has specific serial number.
- Parameters
-
| serialNumber | A serial number of the USB device to connect to. |
- Note
- This constructor can be used more than one USB devices are in use at the same time.
| def cyberatom.UsbConnection.sendMessage |
( |
|
self, |
|
|
|
code, |
|
|
|
payload, |
|
|
|
len |
|
) |
| |
The documentation for this class was generated from the following file: