This command sends a string to the first mini USB port USB0.
The first input parameter string is a Python string to send to the first mini USB port USB0.
The second input parameter <timeout> is optional and is a Python integer, measured in 1/10s. It represents the maximum time to wait for the string to be sent to the first mini USB port USB0 when buffer is full and further data is blocked. The timeout range is (0 ÷ 32767).
This method returns immediately after the string has been sent to the first mini USB port USB0 or after the timeout period if the whole string could not be sent to the first mini USB port USB0. The return value is a Python integer which is -1 if the timeout period has expired, 1 otherwise.
Example:
a = USB0.send('test')
sends the string 'test' to the first mini USB port USB0 handling, assigning the return value to a.
|
|
Note: The buffer available for the USB0.send command is 32767 bytes. |