Hi Friends,
I am a little Newbie and wanted to try something out:
I have a RPI3 and I want to control the LED’s via mqtt, but honestly, I am overwhelmed where to start.
I already wrote a script with RPi.GPIO to control the LED, but thats it.
I dont know how to include the mqtt protol in balena (as a service in the docker-compose file?) and I don’t get it how to start on mqtt.
You will need 2 services to work with MQTT; an MQTT broker (the server) and an MQTT client (where you want to send the data from/to). You can have both of these services on a single RPi3, you can do this by specifying them in your docker-compose.yml file.
Yes, I declared MQTT as a service in my docket-compose file. Do I have to split MQTT in two services in my docker file? Or do I have to make a new config file for MQTT?