You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Daniele Tricoli 2fa23cd5d2 Move text before wiring diagram 1 year ago
.gitignore Initial import 1 year ago
LICENSE Initial import 1 year ago
README.md Move text before wiring diagram 1 year ago
thpa-sensor.ino Switch to TLS and require password 1 year ago
wiring.fzz Add wiring schematics 1 year ago
wiring.png Add wiring schematics 1 year ago

README.md

thpa-sensor

thpa-sensor is very simple temperature/humidity/pressure/altitude sensor code for arduino. It just pull data from a BME280 sensor and send it to a MQTT server.

Wiring

Connect the BME280 sensor using I2C, for example on a Wemos D1 mini:

Wiring diagram

Build

To build the project you have to provide a secrets.h header file with the following:

#define SECRET_WIFI_SSID ("your SSID")
#define SECRET_WIFI_PASSWORD ("the wifi password")
#define SECRET_MQTT_HOST ("MQTT host")
#define SECRET_MQTT_PORT (8883)
#define SECRET_MQTT_USER ("your mqtt user")
#define SECRET_MQTT_PASSWORD ("mqtt password")
#define SECRET_FINGERPRINT ("SHA1 fingerprint of the TLS certificate used")
#define SECRET_MQTT_TOPIC ("the/topic/where/to/send/data")
#define SECRET_MQTT_CLIENT_ID ("client id")