Open diodi opened 1 year ago
ok! it is a important issue, I will fix it.
Hi again, @diodi , can you give information about the clients please? Desktops clients, esp clients maybe?, Is the traffic only two publish?
Two esp clients are active. Both publish serialized JsonDocuments (ArduinoJson.h) to several sub-topics within the same main topic using PubSubClientStatic. Both clients subscribe to the main topic to receive all published information. Thank you for taking a look.
I get the same error as described by @diodi. But I also get it without running an Access Point. I use the simpleMqttBroker example with
WiFi.mode(WIFI_STA);
and with only one client that publishes two topics every 10 seconds (Tasmota on an ESP8266).
When I print out the free memory with
ESP.getFreeHeap()
I see decreasing free memory after each publication event.
The time until the exception occurs varies, but often is only a couple of minutes. I tried version 1.0.5 and 1.0.3 with basically the same result
I wonder if I'm seeing the same problem. I'm running SimpleMqqtBroker in STA mode, with 2 clients publishing and 2 subscribing. After about 10 minutes, the broker repeatably drops off the network. There is nothing printed on the serial when this happens, do you have to do something to enable the core panic message above?
Edit: my issue seems different so I made another issue: https://github.com/alexCajas/EmbeddedMqttBroker/issues/22
I modified httpServerAndMqttBroker.ino to operate as as WIFI_AP and to allow up to 8 clients.
Connecting two clients and generating some trafic I run into an unhandled exception.
The memcopy operation
leads to the exception.
Please let me know if you need more. Thank you!