Accusafe Sensor Module User Manual
25
06/21/2021
•
Click
Verify
to verify the connection to your MQTT server
•
Once the connection is successful, click
Upload
•
On your F901 Controller, enable the MQTT service under
after
successful Upload)
•
Your F901 Controller MQTT API is now ready for remote access.
4.3.6 MQTT ENDPOINTS
Subscribing
Topic:
[Controller name] EP0
Return: Json object {topic, payload}
Note: default controller name is
F901 controller.
You can set controller name under
Example API call from paho-mqtt client:
Client.subscribe(topic="F901 controller EP0", qos=
0
)
Example return:
topic: F901 controller EP0
payload: {"id1556576356539": {"enable": false, "name": "Generator
Manual", "devices": {}}, "id1556575675503": {"enable": true, "name":
"C2H4 PID", "devices": {"C2H4": {"status": 0, "value": 75.0},
"Generator": {"status": 0, "value": 800}}}, "id1556575918560":
{"enable": true, "name": "Environment", "devices": {"CO2": {"status":
0, "value": 0.59}, "RH": {"status": 0, "value": 34.2}, "Temperature":
{"status": 0, "value": 26.0}, "O2": {"status": 0, "value": 19.5}}}}
Payload object hierarchy:
Payload {
panel_id : {
"enable": [true/false],
"name": [string],
"devices": {
device_name: {"status": [number], "value": [number]},
...// other devices
}
}
...//other panels
}
Publishing
Topic:
[Controller name] EP1
Payload: json object specifies control parameters of a panel/device