Commands are sent as JSON strings with a message ID (may be an empty string, but must be present), a URI, an HTTP verb, and possibly arguments.
Direction of 1 means CW and -1 means CCW.
| Command Name |
URI |
Verb |
| Get the sensor stats |
/stats |
GET |
|
{"messageId":"1000","uri":"/stats","verb":"GET"} |
|
{messageId":"1000","revolutions":1, "maxCadence": 30, "Direction":1} |
|
| Clear the sensor stats |
/stats |
DELETE |
|
{"messageId":"1000","uri":"/stats","verb":"DELETE"} |
|
{messageId":"1000","revolutions":0, "maxCadence": 0, "Direction":0} |