MPLAB Harmony Bluetooth Help
|
Clear the BLE receive buffer.
Function DRV_BM71_ClearBLEData:
void DRV_BM71_ClearBLEData( const DRV_HANDLE handle );
Clears the buffer used when receiving characters via the DRV_BM71_ReadByteFromBLE and DRV_BM71_ReadDataFromBLE calls.
DRV_BM71_Open must have been called to obtain a valid opened device handle.
Parameters |
Description |
handle |
valid handle to an opened BM71 device driver unique to client |
None.
uint8_t byte; // note generic versions of calls (DRV_BT instead of DRV_BM71) is used DRV_BT_ClearBLEData(appData.bt.handle); // wait for byte to arrive while (!DRV_BT_ReadByteFromBLE(appData.bt.handle, &byte)) { // should have some sort of way to break out of here if byte never arrives }
void DRV_BM71_ClearBLEData( const DRV_HANDLE handle );
MPLAB Harmony Bluetooth Help
|