You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 year ago | |
---|---|---|
.gitignore | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
thpa-sensor.ino | 1 year ago | |
wiring.fzz | 3 years ago | |
wiring.png | 3 years 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:
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")