« Previous -
Version 3/8
(diff) -
Next » -
Current version
J. Simmons, 12/29/2017 04:32 am
Software Source Code¶
Firmware¶
Common¶
| Field |
Value |
| Baud Rate |
115200 |
| Data Bits |
8 |
| Parity |
None |
| Stop Bit |
1 |
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.
Tone Ring Controller¶
| Command Name |
URI |
Verb |
| Run the motor (use Direction of 1 for CW and -1 for CCW) |
/motor |
PUT |
|
{"messageId":"1000","uri":"/motor","verb":"PUT", "args":{"revolutions":1, "cadence": 30, "Direction":1}} |
|
{messageId":"1000","revolutions":1, "cadence": 30, "CW":1} |
|
Sensor Controller¶
| 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} |
Also available in:
HTML
TXT