4.2.6 anchor/{AnchorID}/handle/{MAC}/{Handle}
Handle:
Finding out the structure of the Generic Attribute Profile (GATT) table of a Bluetooth® Low Energy Peripheral device (Discovery) is an energy intensive process. To avoid it, we use the handle number on the GATT table. In this method, the Beacon Line Anchor (Central) can read and write the Characteristics values. This means that to read or write from a specific characteristic, the handle number must be known to the frontend program.
key | value |
---|---|
URL | /{PREFIX}/anchor/{AnchorID}/handle/{MAC}/{Handle} |
Method | GET |
Description | Reads a Bluetooth® Low Energy handle of a Node over an Anchor |
Parameters | N/A |
Response | HEX |
Example:
#curl localhost:8080/bline/v1/anchor/line1-01/handle/F6:49:C6:33:6D:B3/13
00
key | value |
---|---|
URL | /{PREFIX}/anchor/{AnchorID}/handle/{MAC}/{Handle} |
Method | PUT |
Description | Writes a Bluetooth® Low Energy handle of a Node over an Anchor |
Parameters | JSON |
Response | TEXT |
Example:
#curl -X PUT localhost:8080/bline/v1/anchor/line1-01/handle/F6:49:C6:33:6D:B3/13 -H 'Content-Type: application/json' -d '{"data":"0x01"}'
Anchor: line1-01 has written handle 13 on Node: F6:49:C6:33:6D:B3 with 01!