Hello,
I have several ESP8266 devices at home (mostly Shelly 1 and Shelly 1 PM) connected to a separate SSID on a TP-Link Archer C7 v5 used as AP.
Some time ago I noticed that one of the ESP8266 devices (living-lamp) was randomly and constantly disconnecting/reconnecting to the MQTT broker (but not to the WiFi). All other devices were stable.
I tried investigating the device but nothing seems problematic with it.
After some time I decided to replace (just to test) the TP-Link Archer C7 v5 with a Linksys WRT1900ACS that was laying around (also configured as AP with the same configuration as the TP-Link Archer C7 v5) and after several days, everything was stable (no ESP8266 devices disconnected/reconnected to the MQTT broker).
I decided to go back to the TP-Link Archer C7 v5 and noticed that this time another ESP8266 device (bedroom-lamp) was randomly and constantly disconnecting/reconnecting to the MQTT broker (but again no WiFi disconnects). All other devices (including the one that was previously unstable - living-lamp - were stable).
But the question is : why only one device from all of them? And not the same one...
This let me conclude that the issue is not with the ESP8266 devices, but rather with the TP-Link Archer C7 v5 (as with the Linksys WRT1900ACS every device was stable).
Nothing appears in the logs of the TP-Link Archer C7 v5 when the ESP8266 device disconnects/reconnects to the MQTT broker.
I could just keep using the Linksys WRT1900ACS as the AP but I wanted to use wpa2/wpa3 mixed on the main SSID (not the one for the ESP8266 devices), but after trying to enable it, my Android devices couldn't connect anymore to WiFi. Also I wanted to activate fast roaming (as I initially intended to add the Linksys WRT1900ACS as a second AP for better coverage) and this also seems to be broken on Linksys WRT1900ACS. These seem to be a known limitation of mwlwifi -> WRT1900ACS - WiFi stopped working for Android phones after upgrade to OpenWrt 22.03.0.
On the other hand, this functionalities (wpa2/wpa3 mixed and fast roaming) seem to work reliability on TP-Link Archer C7 v5 (after enabling them and making a few tests).
So, does anybody know how I can further debug the instability caused by the TP-Link Archer C7 v5 on (only one, random) ESP8266 device (at a time)?