You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • I've just been looking into this more with the WiFi logging enabled, and I see (even with ESP32.enableBLE(0)):

    [/home/gw/workspace/Espruino/libs/networ­k/esp32/jswrap_esp32_network.c]:jswrap_w­ifi_connect: esp_wifi_start NETWORK_SSID_HERE
    =undefined
    >I (121817) wifi:new:<4,1>, old:<1,1>, ap:<255,255>, sta:<4,1>, prof:1
    I (122117) wifi:state: init -> auth (b0)
    I (123117) wifi:state: auth -> init (200)
    I (123117) wifi:new:<4,0>, old:<4,1>, ap:<255,255>, sta:<4,1>, prof:1
    [/home/gw/workspace/Espruino/libs/networ­k/esp32/jswrap_esp32_network.c]:wifiReas­onToString 5
    [/home/gw/workspace/Espruino/libs/networ­k/esp32/jswrap_esp32_network.c]:Wifi: Event(5):SYSTEM_EVENT_STA_DISCONNECTED
    [/home/gw/workspace/Espruino/libs/networ­k/esp32/jswrap_esp32_network.c]:wifiReas­onToString 2
    [/home/gw/workspace/Espruino/libs/networ­k/esp32/jswrap_esp32_network.c]:wifiGetE­vent: Got event: 5
    [/home/gw/workspace/Espruino/libs/networ­k/esp32/jswrap_esp32_network.c]:sendWifi­Event [#ondisconnected](https://forum.espruino­.com/search/?q=%23ondisconnected)
    

    With BLE enabled (the default) I see: wifi:Coexist: Wi-Fi connect fail, apply reconnect coex policy

    But the interesting bits are:

    [/home/gw/workspace/Espruino/libs/networ­k/esp32/jswrap_esp32_network.c]:wifiReas­onToString 5
    --> WIFI_REASON_ASSOC_TOOMANY
    [/home/gw/workspace/Espruino/libs/networ­k/esp32/jswrap_esp32_network.c]:Wifi: Event(5):SYSTEM_EVENT_STA_DISCONNECTED
    [/home/gw/workspace/Espruino/libs/networ­k/esp32/jswrap_esp32_network.c]:wifiReas­onToString 2
    --> WIFI_REASON_AUTH_EXPIRE
    

    I tried to google the connection errors for C3 and I actually see this which seems interesting, and implies it's actually broken hardware which might explain why it worked for me initially: https://github.com/esphome/issues/issues­/4893

    The suggestion is to set the transmit power, but that didn't work for me :(

About

Avatar for Gordon @Gordon started