Skip to content

A simple Sketch to read the Temperature from multiple DS18B20 and publish them to a MQTT-Server. Compiles in the Arduino IDE for the ESP8266

License

Notifications You must be signed in to change notification settings

kkmaslowski/ESP8266-MQTT-multiple-ds18b20

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

mqtt_esp8266_ds1820_arduino

A simple Sketch to read the Temperature from multiple DS18B20 and publish them to a MQTT-Server using a ESP8266. Compiles in the Arduino IDE for the ESP8266

This Sketch will connect your ESP8266 to your WIFI-AP and to a MQTT-Server. It'll loop through all DS18B20 temperature sensors connected to GPIO2 and publish their Temperature values to the MQTT-Server.

  • The topic is put together from a base you define in String romcode = "temp/"; plus the ROM-ID of the DS18B20.
  • The Message contains the raw integer Value of the Temperature ( divide by 16 for Celsius)

Based on:

About

A simple Sketch to read the Temperature from multiple DS18B20 and publish them to a MQTT-Server. Compiles in the Arduino IDE for the ESP8266

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Other 100.0%