mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
use only espMqttClient queue
This commit is contained in:
@@ -707,9 +707,7 @@ uint16_t MqttClient::getQueue() const {
|
||||
espMqttClientInternals::Outbox<OutgoingPacket>::Iterator it = _outbox.front();
|
||||
uint16_t count = 0;
|
||||
while (it) {
|
||||
if (it.get()->packet.packetType() == PacketType.PUBLISH) {
|
||||
++count;
|
||||
}
|
||||
++count;
|
||||
++it;
|
||||
}
|
||||
EMC_SEMAPHORE_GIVE();
|
||||
|
||||
Reference in New Issue
Block a user