An application that reads data from serial port and sends it to a MQTT broker.
- Clone this repository
- Check the serial port where data will be read (run
ls /dev/tty*
and check the port you want to read data from) - Create a .env file inside the root folder. You might use the .env.example file as a sample
- Replace the env variables with serial port previously checked on step 2, broker and topic values
This application was originally created for reading data published on the serial port by an Arduino and send to a MQTT broker.
The Arduino application writes each time it identifies some movement on the PIR sensor.
If you want to check the application you can click here.
The image below illustrates this idea: