Skip to content

Latest commit

 

History

History

relay

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

wifi relay

turn the power on or off for a machine.

to do

  • 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

example commands

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"

dependencies