-
Notifications
You must be signed in to change notification settings - Fork 5
Appendix 2: Server JSON format
0Alic edited this page May 27, 2018
·
1 revision
{
"positions": {
"03ff01": "cameraBache",
"03ff00": "cameraLisi",
"03ff02": "cucina"
},
"devices": {
"0c:f3:ee:04:2e:fe": "nerfgun",
"0c:f3:ee:04:2e:b4": "luca",
"0c:f3:ee:04:2e:5e": "chiara",
"0c:f3:ee:04:30:d5": "andrea"
},
"algorithm-interval": "5",
"DB_connection_params": {
"host": "ds219130.mlab.com",
"password": "your_password",
"namespace": "your_namespace",
"user": "your_userName",
"port": "your_port"
},
"server-ip": "192.168.43.234",
"server-port": "8080",
"broker-ip": "192.168.43.234",
"publish_topic": "update/stations",
"subscribe_topic": "update/sensors"
}
- positions: map <stationId, roomName>;
- devices: map <beaconMAC, userName>;
- algorithm-interval: time to wait before computing users current positions (secs);
- DB_connection_params: parameters for the connection to a MongoDB at ds219130.mlab.com;
- server-ip: IP address of the server;
- server-port: port of the server;
- broker-ip: IP address of the broker;
- publish_topic: topic to publish modifications to the tags;
- subscribe_topic: topic to subscribe to receive the RSSi from the stations.