mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Small impovements
This commit is contained in:
parent
2c3dcfeb73
commit
0ad0f7c02d
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user