This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DHT 22 has 4 pins, Pin 1 Vcc on the DHT22 is connected to a 3.3V pin on the ESP32. Pin 2, the DHT-22 data line is connected to GPIO13 Pin 3 is left disconnected and pin 4 ground is connected to a ground on the ESP32.
Step 4: MQTT Publish code
If umqtt is not there , install using this command
upip.install('micropython-umqtt.simple')
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On the serial console, check temperature and humidity values are showing
Pi Side setup
Step 6: Setting up Pi
Install python3 and connect SSD1306
Step 7 : Subscribe code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I want to communicate ESP32 with my mobile app. I done micopython coding as follows :
import network
ap = network.WLAN(network.AP_IF)
ap.active(True)
ap.config(essid=’ESP32′)
ap.config(authmode=3, password=’123456789′)
In this code Access point is created and it is visible in my android mobile.
But when i connect my mobile to access point it is showing “saved” message instead of “connected” even though i have entered correct password.
I followed same procedure using arduino code then i am able to connect my mobile with access point created by esp32. Any help is highly appreciable .
I want to communicate ESP32 with my mobile app. I done micopython coding as follows :
import network
ap = network.WLAN(network.AP_IF)
ap.active(True)
ap.config(essid=’ESP32′)
ap.config(authmode=3, password=’123456789′)
In this code Access point is created and it is visible in my android mobile.
But when i connect my mobile to access point it is showing “saved” message instead of “connected” even though i have entered correct password.
I followed same procedure using arduino code then i am able to connect my mobile with access point created by esp32. Any help is highly appreciable .