Skip to content

Never connects to WiFi, reboot loop, cycles through saved AP profiles that don't exist. Heltec LoRa v2 #2199

@SmittyHalibut

Description

@SmittyHalibut

Before submitting a problem please check the troubleshooting section
https://docs.openmqttgateway.com/upload/troubleshoot.html

Describe the bug
OpenMQTTGateway on Heltec LoRa v2, never connects to Wifi. Reboot cycle. Summary: WiFiSTA.cpp:317 begin() connect failed! 0x3007

But if I move it to another AP on the same network, configured the same, it works. Network is UniFi, APs are different models bought at different times. The working AP is newer. I've disabled 5GHz for this SSID. There are other ESP32 based (Tasmota) devices on this SSID, on both these APs.

Serial console shows it attempting to connect to the saved AP profile 1. No error messages, but then it proceeds to AP profile 2 (which doesn't exist) and fails, then profile 3 and fails, profile 4, etc.

To Reproduce
Steps to reproduce the behavior:

  1. Be in my Shop. (Sorry.)
  2. Configure Heltec LoRa v2 for WiFi, MQTT, etc. Everything works great.
  3. Move Heltec to house.
  4. Module never connects to the network, stays on the mostly-white screen, never any text logging. Serial console shows the text below.

Expected behavior
I expect it to boot normally, connect to the network, and perform just like it did in my shop.

Screenshots

W: MQTT not connected, aborting the publication
W: Rebooting for reason code 3
E (672) esp_core_dump_flash: Core dumpxata check failed:
Calculated checksum='e633ecfc'
Image checksum='280b55bb'
N: 
************* WELCOME TO OpenMQTTGateway **************
N: SYS config not found
N: SSD1306 config initialised
N: Saved SSD1306 config loaded
N: Setup SSD1306 Display end
N: OpenMQTTGateway Version: v1.8.1
N: OTA server cert hash: 02118cbaf5cc02748398d93ecdb0ef2a444c37358a617bfb2206dfe351dc7cf2
N: Config loaded from flash
N: Attempting Wifi connection with saved AP: 0
N: Attempting Wifi connection with saved AP: 1
E (5188) wifi:sta is connecting, return error
[  2412][E][WiFiSTA.cpp:317] begin(): connect failed! 0x3007
N: Attempting Wifi connection with saved AP: 2
E (6199) wifi:sta is connecting, return error
[  3423][E][WiFiSTA.cpp:317] begin(): connect failed! 0x3007
N: Attempting Wifi connection with saved AP: 3
E (7212) wifi:sta is connecting, return error
[  4436][E][WiFiSTA.cpp:317] begin(): connect failed! 0x3007
N: Attempting Wifi connection with saved AP: 4
E (8223) wifi:sta is connecting, return error
[  5447][E][WiFiSTA.cpp:317] begin(): connect failed! 0x3007
N: Connect your phone to WIFI AP: OMG_heltec_rtl_433_ESP_OOK with PWD: 
*wm:AutoConnect 
*wm:Connecting to SAVED AP: HathIoT
E (9735) wifi:sta is connecting, return error
[  6959][E][WiFiSTA.cpp:317] begin(): connect failed! 0x3007

It's worth noting that OMG_heltec_rtl_433_ESP_OOK never shows up.

Environment (please complete the following information):

  • OpenMQTTGateway version used: 1.8.1, as updated from the WebUI in my shop.
  • Library version related to the problem you have: n/a
  • For IR and RF clarify if you tested with the basic examples given with these libraries

Additional context
If you want more info, please let me know what I can provide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions