From 26925e953654b2b8c36f1657b291a9da4ddc88c1 Mon Sep 17 00:00:00 2001 From: Vladimir Ermakov Date: Tue, 14 Sep 2021 19:52:29 +0300 Subject: [PATCH] pio: disable qio mode, my board stoped working with it --- platformio.ini | 2 +- src/mqtt_commander.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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;