MPLAB Harmony Bluetooth Help
|
Return the Bluetooth address.
Function DRV_BM64_GetBDAddress:
void DRV_BM64_GetBDAddress(const DRV_HANDLE handle, char* buffer);
Return the Bluetooth address of the device as an ASCII string.
DRV_BM64_Open must have been called to obtain a valid opened device handle.
Parameters |
Description |
handle |
valid handle to an opened BM64 device driver unique to client |
buffer |
pointer to a char buffer at least 18 bytes long |
None.
laString tempStr; char buf [18]; // note generic version of call (DRV_BT instead of DRV_BM64) is used DRV_BT_GetBDAddress(appData.bt.handle, buf); tempStr = laString_CreateFromCharBuffer(buf, &LiberationSans12); laLabelWidget_SetText(GFX_BTADDRESS_VALUE, tempStr); // display BT address laString_Destroy(&tempStr);
void DRV_BM64_GetBDAddress( const DRV_HANDLE handle, char* buffer );
MPLAB Harmony Bluetooth Help
|