mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
merge latest change from official repo
This commit is contained in:
@@ -317,7 +317,8 @@ void MqttClient::_loop(MqttClient * c) {
|
||||
|
||||
uint16_t MqttClient::_getNextPacketId() {
|
||||
++_packetId;
|
||||
if (_packetId == 0) ++_packetId;
|
||||
if (_packetId == 0)
|
||||
++_packetId;
|
||||
return _packetId;
|
||||
}
|
||||
|
||||
@@ -498,7 +499,7 @@ void MqttClient::_onConnack() {
|
||||
}
|
||||
|
||||
void MqttClient::_onPublish() {
|
||||
espMqttClientInternals::IncomingPacket p = _parser.getPacket();
|
||||
const espMqttClientInternals::IncomingPacket & p = _parser.getPacket();
|
||||
uint8_t qos = p.qos();
|
||||
bool retain = p.retain();
|
||||
bool dup = p.dup();
|
||||
|
||||
Reference in New Issue
Block a user