Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 218c253

Browse filesBrowse files
committed
Reset state to read type when receiving an empty payload with QoS 0
1 parent 849832b commit 218c253
Copy full SHA for 218c253

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎src/MqttClient.cpp

Copy file name to clipboardExpand all lines: src/MqttClient.cpp
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,10 @@ void MqttClient::poll()
547547

548548
if (_onMessage) {
549549
_onMessage(_rxLength);
550+
551+
if (_rxLength == 0) {
552+
_rxState = MQTT_CLIENT_RX_STATE_READ_TYPE;
553+
}
550554
}
551555
}
552556
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.