-
Notifications
You must be signed in to change notification settings - Fork 0
Protocols
HaukeBu edited this page Oct 10, 2016
·
2 revisions
This section describes the used protocols between the three core teams.
For the communication we use a JSON formatted string with the following format.
{
"version":Integer,
"sensortype":"String",
"values":[
{
"id":Integer,
"value":Integer}
]
}
Valid values:
- version: Integers beginning with 1 and incremented by 1 with every change.
- sensor: Several valid types [unit]:
- pressure [gram]
- temperature [°C]
- accelerometer [yet not confirmed] possible:[deg/s]
- microphone [yet not confirmed] possible:[dB]
- distance_sensor [cm]
- values: Array of entries:
- id: as an integer beginning with 0
- value: as an integer
Example:
{
"version":1,
"sensortype":"pressure",
"values":[
{
"id":0,
"value":1000
},
{
"id":1,
"value":1000
}
]
}