Ser.Notifysent Method
Function: |
Using this method for the selected serial port (selection is made through ser.num) will cause the on_ser_data_sent event to be generated when the amount of committed data in the TX buffer is found to be below "threshold" number of bytes. |
Syntax: |
notifysent(threshold as word) |
Returns: |
--- |
See Also: |
Part |
Description |
threshold |
Amount of bytes in the TX buffer below which the event it so be generated. |
Details
Only one on_ser_data_sent event will be generated each time after the ser.notifysent method is invoked. This method, together with the on_ser_data_sent event provides a way to handle data sending asynchronously.
Just like with ser.txfree, the trigger you set won't take into account any uncommitted data in the TX buffer.