endpoints for pressure and humidity
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user