.txlen R/O Property
Function: |
For the selected serial port (selection is made through ser.num), returns the total number of committed bytes currently found in the TX buffer. |
Type: |
Word | dword |
Value Range: |
0-65535 |
See Also: |
Details
The data in the TX buffer does not become committed until you use the ser.send method.
Your application may use the ser.notifysent method to get on_ser_data_sent event once the total number of committed bytes in the TX buffer drops below the level defined by the ser.notifysent method.
Older devices had smaller RAM sizes, so the value returned by this property was of the word type. On newer devices with larger RAM capacities, this property has the dword type. Inspect the property's declaration on the platform you are using to make sure you know its type.