BleService¶
Method | LwM2M request | Description |
---|---|---|
getAddress | get /1024//22 alias: /ble/address |
Get BLE MAC address |
getAddress¶
Minimal Tap Firmware version: 1.0
Get BLE MAC address
Parameters¶
This endpoint does not need any parameter.
Returns¶
string (macaddress)
Example¶
import { Tap } from "@iotize/tap";
const tap: Tap = ...;
const response = await tap.service.ble.getAddress();
const value = response.body();
console.log(`getAddress: ${value}`);