diff --git a/platformio.ini b/platformio.ini index aa757ee..d26d322 100644 --- a/platformio.ini +++ b/platformio.ini @@ -40,7 +40,7 @@ platform = ${common.platform} board = esp32dev ;board = lolin32 framework = arduino -board_build.flash_mode = qio +;board_build.flash_mode = qio board_build.f_cpu = 160000000L ;board_build.f_cpu = 240000000L board_build.partitions = min_spiffs.csv diff --git a/src/mqtt_commander.cpp b/src/mqtt_commander.cpp index 628bbb5..b6385ca 100644 --- a/src/mqtt_commander.cpp +++ b/src/mqtt_commander.cpp @@ -120,6 +120,7 @@ static void pub_stats() root["uptime"] = uptime::uptime_ms() / 1000.0; root["wifi_rssi"] = WiFi.RSSI(); root["wifi_ssid"] = WiFi.SSID(); + root["ipaddr"] = WiFi.localIP().toString(); root["hall_sensor"] = hallRead(); root["cpu_temp"] = t_c; root["ble_adv_cnt"] = ble::raw_advertise_counter;