Skip to content

Instantly share code, notes, and snippets.

Processing cookies

Damian Riggert screenzone

Processing cookies
View GitHub Profile
screenzone / mqttSensor2.ino
Created September 20, 2017 19:58
Arduino sketch for ESP8266 - Wemos D1 Mini. Read temperature from BMP180 via I2C and publish value to MQTT topic.
View mqttSensor2.ino
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <Adafruit_BMP085.h>
Adafruit_BMP085 bmp;
const char* ssid = "ArduinoSensor";
const char* password = "ArduinoSensorNetwork";
const char* mqttServer = "";
const int sleepTimeS = 60;