endpoints for pressure and humidity

This commit is contained in:
2026-09-11 13:34:55 +02:00
parent 1261ad8f2d
commit 98fb81702b
4 changed files with 53 additions and 6 deletions
+4
View File
@@ -15,6 +15,8 @@
static const char *TAG = "thermo_sensor";
float last_temperature = 0.0f;
float last_pressure = 0.0f;
float last_humidity = 0.0f;
bmp280_t dev_bmp_280;
void main_loop(void *pvParameters) {
@@ -36,6 +38,8 @@ void app_main()
httpd_handle_t server = ygg_start_webserver();
httpd_register_uri_handler(server, &ygg_temp_uri);
httpd_register_uri_handler(server, &ygg_press_uri);
httpd_register_uri_handler(server, &ygg_hum_uri);
ESP_ERROR_CHECK(i2cdev_init());
ygg_bmp280_init(&dev_bmp_280);