Skip to content

Commit feb9c31

Browse files
authored
Merge pull request #599 from BrentIO/fix/598
Ignore empty MQTT payloads in message received handler
2 parents 928a392 + d792916 commit feb9c31

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Controller/Controller.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4276,6 +4276,10 @@ void eventHandler_mqttMessageReceived(char* topic, byte* pl, unsigned int length
42764276

42774277
payload.trim();
42784278

4279+
if(payload.isEmpty()){
4280+
return;
4281+
}
4282+
42794283
MatchState ms;
42804284
ms.Target(topic);
42814285

0 commit comments

Comments
 (0)