Hi out there,
I have a very basic question but i am unable to find an answer that is helping me. Most likely I am thinking in a wrong direction, or messing something up.
But I am sure you are able to help me out.
I want to use the MQTT technology to react to events on the Onion Omega.
Everything is set up and seems to work just fine.
Mosquitto is installed, the broker is running on a different device and I can use this command:
mosquitto_sub -h MyServer -t 'omega2/'
to subscribe to the topic. If done so I see all the data that is published in my terminal connection. So far so good. I will send 2 messages to the device "on" and "off"
I want to react to a subscription (for example running a batch script)
How can I create the connection between "subscription" and execute script ?
Message ON received, start file A
Message OFF received, start file B
I hope this is not to confusing :)
Thanks to all