diff --git a/platformio.ini b/platformio.ini index 64be7ce9..6781848f 100644 --- a/platformio.ini +++ b/platformio.ini @@ -75,7 +75,7 @@ lib_deps = ; -- littlevgl config options ---------------------- build_flags = ;-Os ; Code Size Optimization - -Og ; Code Debug Optimization + ;-Og ; Code Debug Optimization ;-w ; Suppress warnings -D LV_CONF_INCLUDE_SIMPLE -D SPIFFS_TEMPORAL_FD_CACHE ; speedup opening recent files @@ -194,9 +194,9 @@ build_flags = [env:d1mini-lolintft24] platform = espressif8266@2.3.2 board = d1_mini -;upload_port = COM4 ; Change to the correct port -upload_protocol = espota ; Use ArduinoOTA after flashing over serial -upload_port = 10.1.0.148 ; IP of the ESP +upload_port = COM4 ; Change to the correct port +;upload_protocol = espota ; Use ArduinoOTA after flashing over serial +;upload_port = 10.1.0.148 ; IP of the ESP monitor_port = COM4 ; Change to the correct port monitor_speed = 74880 board_build.f_flash = 40000000L diff --git a/src/hasp_http.h b/src/hasp_http.h index 71a96c12..b6af3ef6 100644 --- a/src/hasp_http.h +++ b/src/hasp_http.h @@ -5,8 +5,8 @@ #include "ArduinoJson.h" void httpSetup(const JsonObject & settings); -void httpLoop(bool wifiIsConnected); -void httpReconnect(); +void httpLoop(void); +void httpReconnect(void); bool httpGetConfig(const JsonObject & settings); bool httpSetConfig(const JsonObject & settings); diff --git a/src/hasp_mqtt.cpp b/src/hasp_mqtt.cpp index 81403506..81e826bb 100644 --- a/src/hasp_mqtt.cpp +++ b/src/hasp_mqtt.cpp @@ -100,7 +100,7 @@ void IRAM_ATTR mqttSendState(const char * subtopic, const char * payload) // brightness = 100 char mqttTopic[128]; - char mqttPayload[128 * 5]; + // char mqttPayload[128 * 5]; snprintf_P(mqttTopic, sizeof(mqttTopic), PSTR("%sstate/%s"), mqttNodeTopic.c_str(), subtopic); mqttClient.publish(mqttTopic, payload); @@ -421,6 +421,8 @@ void mqttSetup(const JsonObject & settings) mqttClient.setServer(mqttServer, 1883); mqttClient.setCallback(mqttCallback); + + debugPrintln(F("MQTT: Setup Complete")); } void mqttLoop(bool wifiIsConnected)