Skip to content

Instantly share code, notes, and snippets.

View screenzone's full-sized avatar
🍪
Processing cookies

Damian Riggert screenzone

🍪
Processing cookies
View GitHub Profile
@screenzone
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.
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <Adafruit_BMP085.h>
Adafruit_BMP085 bmp;
const char* ssid = "ArduinoSensor";
const char* password = "ArduinoSensorNetwork";
const char* mqttServer = "192.168.1.1";
const int sleepTimeS = 60;