OpenMQTTGateway
OpenMQTTGateway copied to clipboard
Multi AP setups: OMG won't connect
Before submitting a problem please check the troubleshooting section https://docs.openmqttgateway.com/upload/troubleshoot.html
Describe the bug When in an managed AP environment (Extreme Networks AP3xyz, need to check), when multiple APs are visible, OMG will not reliably connect to any.
To Reproduce Steps to reproduce the behavior:
- Power up OMG
- Lights are on, nobody's home :/ - despite seeing multipe APs, OMG will not connect in some cases
Expected behavior OMG will connect to AP with strongest signal
Screenshots omg_ap_noconnect_1.txt omg_ap_noconnect_2.txt omg_ap_noconnect_3.txt
Environment (please complete the following information):
- OpenMQTTGateway version used (V1.7.0 with some local mods e.g. static config and #2069)
- Libraries
|-- PubSubClient @ 2.8.0
|-- ArduinoJson @ 6.18.3
|-- ArduinoLog @ 1.0.3+sha.f634509
|-- WiFiManager @ 2.0.14-beta+sha.9f5981e
|-- NimBLE-Arduino @ 1.4.1+sha.b6b8af8
|-- TheengsDecoder @ 1.7.8+sha.6e883d1
|-- Adafruit NeoPixel @ 1.12.2
|-- Adafruit AHTX0 @ 2.0.5
|-- SparkFun BME280 @ 2.0.4
|-- Wire @ 2.0.0
|-- Adafruit Unified Sensor @ 1.1.14
|-- ArduinoOTA @ 2.0.0
|-- DNSServer @ 2.0.0
|-- EEPROM @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- Ethernet @ 2.0.0
|-- FS @ 2.0.0
|-- HTTPClient @ 2.0.0
|-- SPI @ 2.0.0
|-- SPIFFS @ 2.0.0
|-- WebServer @ 2.0.0
|-- WiFiClientSecure @ 2.0.0
|-- WiFi @ 2.0.0
|-- Preferences @ 2.0.0
|-- Update @ 2.0.0
Additional context
-
in omg_ap_noconnect_3.txt, OMG device was disconnected from power for a some seconds, which may explain auth errors
-
all logs are recorded from the same OMG device at the same location
-
MAC filtering is active on the managed WiFi, MAC of OMG devices is on whitelist
-
Running on ESP32-C3 mini boards w/ framework-arduinoespressif32 @ 3.20007.0 (2.0.7) & toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
-
see also #2070 (note: that ticket was made with a different setup, non managed WiFi APs but may point to a similar direction)