Creates an instance of the USBComm class wiht the specified information.
The USB device path. Use JSPM.JSPrintManager.getUsbDevices() to get it if unkown.
Gets or sets the size of the receive buffer, in bytes. Default value is 1024
Gets or sets the size of the receive buffer, in bytes. Default value is 1024
Closes the USB connection
Connects to a USB device using the specified path.
Occurs when communication is close.
The callback function
Occurs when data is received.
The callback function
Occurs when an error is thrown.
The callback function
Sends the specified string to the USB device.
The string to send to the USB device.
It represents a USB comm at the client side.