fix IoT Callback issue when the topic is base-1
This commit is contained in:
parent
1b9163d468
commit
531f7e05a7
2 changed files with 16 additions and 9 deletions
|
@ -9,9 +9,9 @@
|
|||
|
||||
// #define FRAM_DEBUG
|
||||
// #define MQTT_DEBUG
|
||||
#define WRITE_DEFAULT_NETCONF
|
||||
#define CLIMATE_CARD_ENABLE
|
||||
#define MQTT_CARD_REGISTER
|
||||
// #define WRITE_DEFAULT_NETCONF
|
||||
//#define CLIMATE_CARD_ENABLE
|
||||
//#define MQTT_CARD_REGISTER
|
||||
#define DISPLAY_ENABLE
|
||||
#define WEB_SERVER_ENABLE
|
||||
#define LCD_OTA_ENABLE
|
||||
|
@ -199,8 +199,10 @@ void setup()
|
|||
ESP_LOGI("Initializer", "Enabling internal display");
|
||||
espmega.enableInternalDisplay(&Serial);
|
||||
ESP_LOGI("Initializer", "Binding climate card to internal display");
|
||||
#ifdef CLIMATE_CARD_ENABLE
|
||||
espmega.display->bindClimateCard(&climateCard);
|
||||
#endif
|
||||
#endif
|
||||
#ifdef WEB_SERVER_ENABLE
|
||||
ESP_LOGI("Initializer", "Enabling web server");
|
||||
espmega.enableWebServer(80);
|
||||
|
@ -213,8 +215,8 @@ void setup()
|
|||
#endif
|
||||
#ifdef REMOTE_VARIABLE_ENABLE
|
||||
ESP_LOGI("Initializer", "Initializing testvar");
|
||||
testVar.begin(32, "/testvar", espmega.iot, true,"/testvar/request");
|
||||
testVar.enableSetValue("/testvar/set");
|
||||
testVar.begin(32, "/xm/fan_speed", espmega.iot, true,"/pm/request_fan_speed");
|
||||
testVar.enableSetValue("/pm/request_switch_state");
|
||||
#endif
|
||||
#ifdef CT_ENABLE
|
||||
ESP_LOGI("Initializer", "Initializing analog card");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue