Sending and Receiving Data (TX and RX buffers)

Top  Previous  Next

The bt. object implements a UART-over-BLE emulation service, so sending and receiving data through the BLE interface closely resembles sending and receiving data through UARTs (controlled by the ser. object).

Since the BLE's "UART" is of the virtual kind, some common UART-related properties are not present. For example, there is no way or need to set the baudrate and other familiar serial parameters. At the same time, a number of bt. object's properties, methods, and events match those of the ser. object.


In this section:

Allocating TX and RX buffers

Receiving data

Transmitting data

Buffer overruns and data loss