use only espMqttClient queue

This commit is contained in:
MichaelDvP
2023-06-05 10:06:19 +02:00
parent d2ff44e1cf
commit b28865a283
5 changed files with 124 additions and 362 deletions

View File

@@ -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();