This commit is contained in:
2025-10-09 23:30:22 -04:00
parent ea47df5ee3
commit 339c0314fb
5 changed files with 6 additions and 4 deletions

View File

@@ -1 +1 @@
ref: refs/heads/main
4c2820d377d1375e787bcef612f0c32c1427d183

View File

@@ -18,7 +18,7 @@ set(HEAD_HASH)
file(READ "/home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_Temperture-Node-v2/build/CMakeFiles/git-data/HEAD" HEAD_CONTENTS LIMIT 1024)
string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS)
set(GIT_DIR "/home/abobkov/MyProjects/ESP-Nodes/.git")
set(GIT_DIR "/home/abobkov/esp/v5.4.1/esp-idf/.git")
# handle git-worktree
if(EXISTS "${GIT_DIR}/commondir")
file(READ "${GIT_DIR}/commondir" GIT_DIR_NEW LIMIT 1024)

View File

@@ -1 +1 @@
d7fed840e66d8b5487e2ceb0eb9406f7ff2c166f
4c2820d377d1375e787bcef612f0c32c1427d183

View File

@@ -85,7 +85,7 @@ void app_main(void)
ret = nvs_flash_init();
}
ESP_ERROR_CHECK(ret);
// Create the I2C bus and BME280 device handles
i2c_bus = i2c_bus_create(i2c_master_port, &conf);
bme280 = bme280_create(i2c_bus, BME280_I2C_ADDRESS_DEFAULT);
@@ -101,6 +101,8 @@ void app_main(void)
xTaskCreate(read_sensors_task, "read_sensors_task", 2048, NULL, 5, NULL);
xTaskCreate(print_sensors_task, "print_sensors_task", 2048, NULL, 5, NULL);
// Use wifi_init() for ESP-NOW and Wi-Fi setup
wifi_init();
mqttronix_start();
// Main loop to read and print the sensor values every 2 seconds