UsbReadUTF connection, data$

This command reads 16 bit unicode characters, in the UTF-8 string format, from a specified USB socket connection. Any data read is returned in the data$ parameter. This command should be used to receive a string sent by a UsbWriteUTF.

After a UsbReadUTF it is important to check if the read succeeded. All serial communication is subject to interruption at any time so check the UsbGetError$(n) after each USB command you execute. UsbGetError$(n) will return an empty string if the read succeeded.

USB Serial Communication

Become a Patron