Skip to content

C code for ESP8266 + dht11/22 temp and humidity publish to MQTT

Notifications You must be signed in to change notification settings

gilav/esp8266_dht_mqtt_C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

C code to read DHT11/22 temperature and humidity values and send them to MQTT server What it does is:

  • scan WIFI for known access points
  • if AP found, connect wifi, set time using NTP server, connect to MQTT server using TLS and start poling DHT sensor and publish temperature and humidity.
  • publish also free ram and uptime, for test purpose
  • blinking LED as in the NodeMcu project.

NOTE: crash when server require certificate. Using ESP8266 2.1.0 board installed from Arduino IDE.

Lavaux Gilles 2017/05

About

C code for ESP8266 + dht11/22 temp and humidity publish to MQTT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%