Repository navigation
ERROR: Too many messages queued #90
dgbalharrie
started this conversation in
General
Replies: 4 comments 3 replies
|
This doesn't seem to be a message from this library. Do you have any code or log you can share? |
1 reply
|
The Mqtt message did seem to provoke the error, however, I was sending a two socketio messages once a second to the webpage. I revised this to once a minute and I now don't get the error. I realise this error was coming from the AsyncTCP library and I note others have observed the error. Looking at the AsyncTCP docs, there isn't a way to increase the queue other than changing some #defines. I know the error isn't in this library, but just noting my experience. |
1 reply
|
I agree it doesn’t seem excessive.
No I am sending a char string as a message. The socketio messages are a json pair… the mqtt, a simple digit or digit pair, though I was wondering if the topics are too long. For example "mainControl/heating/temperature/CurrentTargetTemp"
However, it does seem to be a reported issue. me-no-dev/ESPAsyncWebServer#1158
I am not using ws.availableForWriteAll() as it didn’t appear in the docs/examples I saw… maybe I should try it.
I was using a MQTT library that is in many of the tutorials online. The library worked fine when I was using two ESP32 devices talking to each other, but when I brought up a third, the devices seemed to go crazy with a network IO error, causing them to reboot. So far your library has been working fine, despite the two many messages queued error, which isn’t from you library. So far I have been happy with your library
From: Bert Melis ***@***.***>
Sent: Thursday, April 13, 2023 12:28 PM
To: bertmelis/espMqttClient ***@***.***>
Cc: David Balharrie ***@***.***>; Author ***@***.***>
Subject: Re: [bertmelis/espMqttClient] ERROR: Too many messages queued (Discussion #90)
2 messages per second doesn't seem excessive to me. Maybe you're sending characters/bytes one by one?
—
Reply to this email directly, view it on GitHub<#90 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACU6QS2GTBCCC3XHUTJQJ2LXA7PNXANCNFSM6AAAAAAW2GKR34>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
1 reply
|
I am serving one web client. I have QoS set to 0 at the moment.
Do you have an account on gitlab? I can add you to the project to look at the code.
From: Bert Melis ***@***.***>
Sent: Thursday, April 13, 2023 3:41 PM
To: bertmelis/espMqttClient ***@***.***>
Cc: David Balharrie ***@***.***>; Author ***@***.***>
Subject: Re: [bertmelis/espMqttClient] ERROR: Too many messages queued (Discussion #90)
This library works a bit different. It queues the messages and sends when the underlying network is available for writing. By putting the messages in a queue, QoS > 0 is possible which isn't available in PubSubClient for example. Disadvantage is memory usage and possible memory defragmentation. but the ESP8266 and ESP32 have plenty so it shouldn't be a problem.
To really understand you problem, you will need to share more of your design.
If I understand correctly: you have a webserver on the esp32 and serve a webpage that connects through websockets back to the esp? Messages from MQTT are forwarded to websockets and vice-versa?
How any websocket clients (eg browser windows) are you serving?
—
Reply to this email directly, view it on GitHub<#90 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACU6QSZVPLD7GO7H7HLZ4Z3XBAF6ZANCNFSM6AAAAAAW2GKR34>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
On an ESP32 Dev board, I am getting "ERROR: Too many messages queued" when I publish a message.
Can't find a reference to this in the code or docs, so not sure what I need to do.
All reactions