Skip to content

Ortes/iot_mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IOT Project MQTT

Install

ESP32

First refer to Espressif documentation to install ESP32 SDK
After setting up the shell you can run the following:

git clone [email protected]:Ortes/iot_mqtt.git
cd iot_mqtt
idf.py menuconfig # configure broker address in Example Configuration -> Broker
idf.py flash && idf.py monitor

MQTT topics are:

  • esp/temp topic where temperature is published as a string
  • esp/hum topic where temperature is published as a string
  • esp/led topic where led state is published '0' is off '1' is on

Server

Mosquitto

Ubuntu

The port 1883 must be open.

sudo apt install mosquitto
mosquitto

NodeRed

The port 1880 must be open.

docker run -it -p 1880:1880 --name mynodered nodered/node-red

Given ip_address the ip address of the server where NodeRed is installed.
To setup the flow open ip_address:1880 then clic on import and import copy and paste the json in nodered/flow-nodered.json

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published