Expressif
- Arduino/ESP8266@2.1.0
- PubSubClient@2.6
- WiFiManager@0.12
- Json@5.6.2
Endpoint: /v1.0/messages/[chip-id]
Example of received message: {"sensor": "tardis", "audio": on|off, "pulse": endMs}
Endpoint: /v1.0/actions/[chip-id]
Example: { "name": "play", "params": { "track": 0 } }
, { "name": "play", "params": { "track": 1 } }
Send: { "name": "pause" }
Send: { "name": "mute" }
Send: { "name": "unmute"}
Send: { "name": "volume", "params": { "value": 0 }}
to { "name": "volume", "parameters": { "value": 7 }}
Send: { "name": "pulse", "parameters": { "duration": 2000 }}
Duration is in ms
Endpoint: /v1.0/errors/[chip-id]