Update page 'Message Queue Endpoint'

master
Auke Sytsma 2020-03-01 11:51:10 +00:00
parent 5d56a944b8
commit 672d36ed33
1 changed files with 3 additions and 1 deletions

View File

@ -75,7 +75,9 @@ Farmmaps uses protobuf to specify a structure for the messages published in MQTT
More information on protobuf can be found at [Google Developer Documentation](https://developers.google.com/protocol-buffers/docs/overview).
Python objects can easily be converted to protobuf messages and back (when recieving messages from the broker).
The message structure for the data can be found in `farmmaps/farmmaps.proto`, and is shown below.
The message structure for the data can be found in `farmmaps/farmmaps.proto`, and is shown below.
**Datastructure explained**
The main message is the Datapoint object, containing time, location, machine-id and a reference to metadata.
Then, there is a `sensors` parameter, which holds a dictionary of `SensorType` objects.
Each `SensorType` holds a key and a value, where the key identifies the Sensortype, and the value is the value of the sensor.