RUI3 (RAK Unified Interface 3) - RAK4631

Functions

char * get (uint8_t pos)
 
bool set (char *mac)
 

Detailed Description

Function Documentation

◆ get()

char* get ( uint8_t  pos)
Description
Get the current Device MAC Address
Note
If MAC is 6 bytes and x is passed as 2, the return value will be position [2] in the array. If x is NOT passed, the function will default to returning a string, all uppercase
Syntax
api.ble.mac.get()
api.ble.mac.get(pos)
Parameters
possingle byte, array location
Returns
the current BLE MAC Address
Examples:
BLE_Configuration/src/app.cpp.

◆ set()

bool set ( char *  mac)
Description
Set the current Device MAC Address
Syntax
api.ble.mac.set(mac)
Parameters
macthe BLE mac address
Returns
bool
Return values
TRUEfor success
FALSEfor failure