Skip to content

Instantly share code, notes, and snippets.

Avatar
🍪
Processing cookies

Damian Riggert screenzone

🍪
Processing cookies
View GitHub Profile
@screenzone
screenzone / mqttSensor2.ino
Created Sep 20, 2017
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 = "192.168.1.1";
const int sleepTimeS = 60;