Example mqtt worker library using paho for MQTT 3.1
python single_leaf_example.py
worker will auto load config.json . use 'python single_leaf_example.py yourconfig.json' to load a different/specific config . useful if you have test and prod configs.
On startup the worker will do discovery to see if there is another worker of the same name ( ie. function ) and if there is it will go into backup mode. if the other worker dies this will assume the primary role
Misc Notes:
send_admin_email was a custom webhook to a local node
ACL for MQTT Library:
workers/# pub sub