SER.sendavail()

This command queries the number of bytes available to send to SER buffer.

It has no input parameter.

The return value is a Python integer which is the number of bytes available to send to SER buffer.

 

Example:

 

n = SER.sendavail()

 

queries the number of bytes available to send, assigning the return value to n.