RUI3 (RAK Unified Interface 3) - RAK4631
BLE Function

Functions

void stop (void)
 
void registerCallback (Event event, BLE_HANDLER callback)
 

Detailed Description

Function Documentation

◆ stop()

void stop ( void  )
Description
Provide users to disconnect the existing connection.
Syntax
api.ble.stop()
Returns
void

◆ registerCallback()

void registerCallback ( Event  event,
BLE_HANDLER  callback 
)
Description
Set the fallback function for Bluetooth connection and disconnection.
Syntax
api.ble.registerCallback()
Parameters
eventThe event that triggers the callback function, which can be one of the following values ( BLE_CONNECTED or BLE_DISCONNECTED) callback userFunc
Returns
void