How to send Data of Obstacle Sensor on MQTT Server using Node MCU Board

preview_player
Показать описание
Step-1: Make Connection of Obstacle Sensor with Node MCU Board as mentioned below:
1.1: Connect Vcc Pin of Sensor with 3.3V Pin of Board.
1.2: Connect GND Pin of Sensor with GND Pin of Board.
1.3: Connect Out Pin of Sensor with D1 Pin of Board. (As Programmed in Code)
1.4: Connect USB Cable to Node MCU Board.
Step-2: Open Code in Arduino IDE and set following in code and then upload it on Node MCU Board:
2.1: SSID & Password
2.2: MQTT Server IP address
2.3: MQTT Server Port
2.4: outTopic for Data publish

Step-3: Make Remote Connection of Server using Putty.
Step-4: Use following command to see data received on server from sensor:
Step-5: Now press Shift + F to see recently received data from sensor.

Рекомендации по теме
Комментарии
Автор

Hi, Do you have the code for this project ? Thank you.

foafabio