projects:spejsiot
This is an old revision of the document!
Table of Contents
SpejsIoT
Warsaw Hackerspace IoT something. Because NIH. Based on ESP8266. It all goes through central MQTT broker now.
Devices
- Working
- Vacuum cleaner
- Exhaust
- Planned
- Valves
- Lights
Queue topics
Topic | Description |
---|---|
iot/ DEVICE_ID /control | read: device control; restart - reboot device; ota - start OTA |
iot/ DEVICE_ID /state | write: online or offline , offline is set in last will |
iot/ DEVICE_ID /type | write: device type, eg. exhaust , vacuum |
iot/ DEVICE_ID /ota | write: OTA status, started , finished , failed |
iot/ DEVICE_ID / ENDPOINT | value to set, or state change report, eg. iot/123456/relay = 1 |
HTTP API
Spejsiot devices publish simple REST-like HTTP API:
Address | Description |
---|---|
/metadata.json | Simple device status and endpoints list |
/api/1/ ENDPOINT / VALUE | Set value to endpoint |
Endpoints
Right now only used endpoint is relay
, which takes 0
, 1
or toggle
values.
mDNS / Zeroconf / Avahi
Spejsiot devices advertise using Avahi/Zeroconf/mDNS/Bonjour on local network as services of type _spejsiot._tcp
.
projects/spejsiot.1474185194.txt.gz · Last modified: 2016/09/18 07:53 by informatic