You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • I just took a quick look at this - I'm afraid I don't have much time now.

    Has anyone else got WiFi working? I'm sure I did test this originally and it worked, so I'm not sure what's up....

    Compiling with the WiFi info (commenting out esp_log_level_set("*", ESP_LOG_VERBOSE)) and enabling jsDebug I see:

    [/home/gw/workspace/Espruino/libs/network/esp32/jswrap_esp32_network.c]:jswrap_wifi_connect: entry
    [/home/gw/workspace/Espruino/libs/network/esp32/jswrap_esp32_network.c]:jswrap_wifi_connect: SSID, password, Callback done
    I (3420) wifi:mode : sta (34:b7:da:fb:4b:68) + softAP (34:b7:da:fb:4b:69)
    I (3420) wifi:enable tsf
    [/home/gw/workspace/Espruino/libs/network/esp32/jswrap_esp32_network.c]:wifiReasonToString 2
    [/home/gw/workspace/Espruino/libs/network/esp32/jswrap_esp32_network.c]:Wifi: Event(2):SYSTEM_EVENT_STA_START
    [/home/gw/workspace/Espruino/libs/network/esp32/jswrap_esp32_network.c]:wifiErrorToString 12298
    [/home/gw/workspace/Espruino/libs/network/esp32/jswrap_esp32_network.c]:Wifi: event_handler STA_START: esp_wifi_connect: 12298(SSID is invalid)
    [/home/gw/workspace/Espruino/libs/network/esp32/jswrap_esp32_network.c]:jswrap_wifi_connect: esi_wifi_set_mode done
    [/home/gw/workspace/Espruino/libs/network/esp32/jswrap_esp32_network.c]:jswrap_wifi_connect: esp_wifi_set_config done
    [/home/gw/workspace/Espruino/libs/network/esp32/jswrap_esp32_network.c]:jswrap_wifi_connect: esp_wifi_start Tea
    =undefined
    >I (4230) wifi:ap channel adjust o:1,1 n:4,1
    I (4230) wifi:new:<4,1>, old:<1,1>, ap:<4,1>, sta:<4,1>, prof:1
    I (4540) wifi:state: init -> auth (b0)
    I (5540) wifi:state: auth -> init (200)
    I (5540) wifi:new:<4,0>, old:<4,1>, ap:<4,1>, sta:<4,1>, prof:1
    [/home/gw/workspace/Espruino/libs/network/esp32/jswrap_esp32_network.c]:wifiReasonToString 5
    [/home/gw/workspace/Espruino/libs/network/esp32/jswrap_esp32_network.c]:Wifi: Event(5):SYSTEM_EVENT_STA_DISCONNECTED
    [/home/gw/workspace/Espruino/libs/network/esp32/jswrap_esp32_network.c]:wifiReasonToString 2
    [/home/gw/workspace/Espruino/libs/network/esp32/jswrap_esp32_network.c]:wifiGetEvent: Got event: 5
    [/home/gw/workspace/Espruino/libs/network/esp32/jswrap_esp32_network.c]:sendWifiEvent [#ondisconnected](https://forum.espruino.com/search/?q=%23ondisconnected)
    

    So it's actually just not connecting as far as I can tell (rather than Espruino having some issue and not reporting it).

    To try and get enough space in the IRAM I did change some things in targets/esp32/IDF4/sdkconfig_c3 - possibly CONFIG_ESP_WIFI_IRAM_OPT based on https://docs.espressif.com/projects/esp-idf/en/stable/esp32c3/api-guides/performance/ram-usage.html#optimizing-iram-usage - and I wonder if that affected Wifi stability?

    BUT PLEASE STOP POSTING THE SAME THING MULTIPLE TIMES - just post a new thread (like this) for each issue you encounter. The more duplicate things I have to go through the more time is wasted that I could be using fixing stuff

  • Has anyone else got WiFi working? I'm sure I did test this originally and it worked, so I'm not sure what's up...

    Yes it worked before, but now its broken for ESP32C3_IDF4

About

Avatar for Gordon @Gordon started