Reads a single message generated by the connection. The message is a request for the device. Read should be called continuously in a loop to ensure all generated messages are processed. Subsequent read call confirms that previous message was delivered to the device.
Return Value
str Message generated by the connection.
m
write()
async available
transport.write(message)
Writes a single message to the connection. The message will be processed as a reply from the device.