Update page 'Message Queue Endpoint'

This commit is contained in:
Auke Sytsma 2020-03-01 11:51:10 +00:00
parent 5d56a944b8
commit 672d36ed33

View File

@ -76,6 +76,8 @@ More information on protobuf can be found at [Google Developer Documentation](ht
Python objects can easily be converted to protobuf messages and back (when recieving messages from the broker). 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. 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. 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. Each `SensorType` holds a key and a value, where the key identifies the Sensortype, and the value is the value of the sensor.