Drivers Libraries Help > BM64 Bluetooth Driver Library > Library Interface > h) BLE Functions > DRV_BM64_SendByteOverBLE Function
MPLAB Harmony Bluetooth Help
DRV_BM64_SendByteOverBLE Function

Send a byte over BLE.

Description

Function DRV_BM64_SendByteOverBLE: 

void DRV_BM64_SendByteOverBLE(const DRV_HANDLE handle, uint8_t byte); 

Send one byte over BLE using the BM64's "Transparent Service" feature.

Preconditions

DRV_BM64_Open must have been called to obtain a valid opened device handle.

Parameters
Parameters 
Description 
handle 
valid handle to an opened BM64 device driver unique to client 
byte 
uint8_t of data to be sent 
Returns

None.

Example
uint8_t byte;

byte = 10;     // set to some value

// note generic version of call (DRV_BT instead of DRV_BM64) is used
DRV_BT_SendByteOverBLE(appData.bt.handle, byte);
C
void DRV_BM64_SendByteOverBLE(
    const DRV_HANDLE handle, 
    uint8_t byte
);