Skip to content

Appendix 1: Station JSON format

0Alic edited this page May 27, 2018 · 1 revision
{
  "id": "03ff00",
  "devices": [
      "0c:f3:ee:04:2e:5e",
      "0c:f3:ee:04:2e:b4",
      "0c:f3:ee:04:30:d5",
      "0c:f3:ee:04:2e:fe"
  ],
  "broker_ip": "192.168.1.78",
  "publish_topic": "update/sensors",
  "subscribe_topic": "update/stations",
  "scan_interval": "0.5",
  "send_interval" : "5"
}
  • id: the unique station's id. It follows the following pattern: 03ffHH, where HH is an hexadecimal character;
  • devices: the list of the current BLE tags registered to the system;
  • broker_ip: the IP address of the broker (hosted by the server in our case);
  • publish_topic: the topic to publish the RSSi scanned (the server should subscribe to this topic);
  • subscribe_topic: the topic to subscribe to receive eventual addition/removal of a device from the server;
  • scan_interval: time to wait before scanning for new bluetooth packets (secs);
  • send_interval: time to wait before sending the BLE packets received to the server (secs).
Clone this wiki locally