Get Device MAC Address
Function Table: getBtAddrV2
Flutter Example:
/// Get MAC Address event number
getMac(
evtBase: _VBusEvtBase.base_app_get,
evtType: _VBusEvtType.app_app_get_mac),
/// Get MAC Address
libManager.send(evt: CmdEvtType.getMac, json: jsonEncode(json));
JSON Fields Received by the App:
Field Name | Field Type | Description |
---|---|---|
mac_addr | int [6] | Device ID address (maximum 6 bytes) |
bt_addr | int [6] | Bluetooth address (maximum 6 bytes) |
Example:
{
"bt_addr" : [ 135, 0, 23, 0, 136, 173 ],
"mac_addr" : [ 173, 136, 0, 23, 0, 135 ]
}