Fix MQTT bootloop (no F() macro, #1199 )
This commit is contained in:
parent
5d6e214e0e
commit
f66c28a1bc
@ -2,6 +2,10 @@
|
||||
|
||||
### Development versions after the 0.10.2 release
|
||||
|
||||
#### Build 2009291
|
||||
|
||||
- Fixed MQTT bootloop (no F() macro, #1199)
|
||||
|
||||
#### Build 2009290
|
||||
|
||||
- Added basic DDP protocol support
|
||||
|
@ -100,7 +100,7 @@ void publishMqtt()
|
||||
|
||||
strcpy(subuf, mqttDeviceTopic);
|
||||
strcat(subuf, "/status");
|
||||
mqtt->publish(subuf, 0, true, (const char*)F("online"));
|
||||
mqtt->publish(subuf, 0, true, "online");
|
||||
|
||||
char apires[1024];
|
||||
XML_response(nullptr, apires);
|
||||
@ -137,7 +137,7 @@ bool initMqtt()
|
||||
|
||||
strcpy(mqttStatusTopic, mqttDeviceTopic);
|
||||
strcat(mqttStatusTopic, "/status");
|
||||
mqtt->setWill(mqttStatusTopic, 0, true, (const char*)F("offline"));
|
||||
mqtt->setWill(mqttStatusTopic, 0, true, "offline");
|
||||
mqtt->setKeepAlive(MQTT_KEEP_ALIVE_TIME);
|
||||
mqtt->connect();
|
||||
return true;
|
||||
|
@ -123,12 +123,8 @@ void ESPAsyncE131::parsePacket(AsyncUDPPacket _packet) {
|
||||
}
|
||||
|
||||
if (error && _packet.localPort() == DDP_DEFAULT_PORT) { //DDP packet
|
||||
int pushSeq = 0;
|
||||
error = false;
|
||||
protocol = P_DDP;
|
||||
//bool push = sbuff->flags & DDP_PUSH_FLAG;
|
||||
//if (push) pushSeq = sbuff->sequenceNum;
|
||||
//else if (sbuff->sequenceNum > pushSeq -5) error = true;
|
||||
}
|
||||
|
||||
if (!error) {
|
||||
|
@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
// version code in format yymmddb (b = daily build)
|
||||
#define VERSION 2009290
|
||||
#define VERSION 2009291
|
||||
|
||||
// ESP8266-01 (blue) got too little storage space to work with all features of WLED. To use it, you must use ESP8266 Arduino Core v2.4.2 and the setting 512K(No SPIFFS).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user