diff --git a/main/main.c b/main/main.c index ef937df..53005f0 100644 --- a/main/main.c +++ b/main/main.c @@ -94,7 +94,7 @@ static esp_err_t bme280_readout_handler(httpd_req_t *req) httpd_resp_set_type(req, "text/json"); int8_t ret = bme280_readout(); if (ret == 0) { - snprintf(buffer, sizeof(buffer), "{\"status\": \"ok\", \"sensor\": \"bme280\", \"temp\": %.1f, \"humidity\": %.1f, \"pressure\": %0.1f}", + snprintf(buffer, sizeof(buffer), "{\"status\": \"ok\", \"sensor\": \"bedroom-bme280-01\", \"temp\": %.2f, \"humidity\": %.2f, \"pressure\": %0.2f}", comp_data.temperature, comp_data.humidity, comp_data.pressure/100.); ESP_LOGI(TAG, "%s", buffer); httpd_resp_send(req, buffer, -1);