MPLAB Harmony Bluetooth Help
|
Send data over BLE.
Function DRV_BM71_SendDataOverBLE:
void DRV_BM71_SendDataOverBLE(const DRV_HANDLE handle, uint8_t* bytes, uint16_t size);
Send data over BLE using the BM71's "Transparent Service" feature.
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 |
bytes |
pointer to a uint8_t buffer at least size bytes long |
size |
length of buffer (including |
None.
#define BUFSIZE 100 uint8_t buf [BUFSIZE]; // (code to fill in buffer with data) // note generic version of call (DRV_BT instead of DRV_BM71) is used DRV_BT_SendDataOverBLE(appData.bt.handle, buf, BUFSIZE);
void DRV_BM71_SendDataOverBLE( const DRV_HANDLE handle, uint8_t* bytes, uint16_t size );
MPLAB Harmony Bluetooth Help
|