Skip to content

An application which reads data from serial port and sends it to a MQTT broker

License

Notifications You must be signed in to change notification settings

Otavioensa/mqtt-serial-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mqtt-serial-data

An application that reads data from serial port and sends it to a MQTT broker.

Steps for execution

  1. Clone this repository
  2. Check the serial port where data will be read (run ls /dev/tty* and check the port you want to read data from)
  3. Create a .env file inside the root folder. You might use the .env.example file as a sample
  4. Replace the env variables with serial port previously checked on step 2, broker and topic values

Purpose

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: Alt text

About

An application which reads data from serial port and sends it to a MQTT broker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published