turn the power on or off for a machine.
- open / close relay on lock / unlock messages
- publish lock / unlock status
- protect mqtt topics
- enable over-the-air firmware updates
- measure and report whether the machine is running
subscribe to changes:
mosquitto_sub -h mqtt.bitraf.no -v -t "bitraf/machine-access/pick_and_place/is_locked"
lock pick and place machine:
mosquitto_pub -h mqtt.bitraf.no -m "" -t "bitraf/machine-access/pick_and_place/lock"
unlock pick and place machine:
mosquitto_pub -h mqtt.bitraf.no -m "" -t "bitraf/machine-access/pick_and_place/unlock"
- ESP8266WiFi (included with ESP8266 "board"): https://github.com/esp8266/Arduino
- PubSubClient (included): https://github.com/knolleary/pubsubclient