[GH-ISSUE #1421] ESP32-S3 support #1215

Closed
opened 2026-02-28 01:29:04 +03:00 by kerem · 15 comments
Owner

Originally created by @acirulis on GitHub (May 20, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1421

Has anyone successfully used WifiManager library on ESP32-S3?

Originally created by @acirulis on GitHub (May 20, 2022). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1421 Has anyone successfully used WifiManager library on ESP32-S3?
kerem 2026-02-28 01:29:04 +03:00
  • closed this issue
  • added the
    bug
    ESP32
    labels
Author
Owner

@tablatronix commented on GitHub (Jun 17, 2022):

I do not yet have an S3 dev kit

<!-- gh-comment-id:1159030821 --> @tablatronix commented on GitHub (Jun 17, 2022): I do not yet have an S3 dev kit
Author
Owner

@touchgadget commented on GitHub (Jun 26, 2022):

WM fails to compile on ESP32S3 because the temperature sensor API functions are not implemented.

Linking everything together...
tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/xtensa-esp32s3-elf-g++ -Wl,--Map=/tmp/arduino_build_345963/usbjoywa.ino.map -L/tmp/autobuild_usbjoywa_21717/arduino-1.8.19/portable/packages/esp32/hardware/esp32/2.0.3/tools/sdk/esp32s3/lib -L/tmp/autobuild_usbjoywa_21717/arduino-1.8.19/portable/packages/esp32/hardware/esp32/2.0.3/tools/sdk/esp32s3/ld -L/tmp/autobuild_usbjoywa_21717/arduino-1.8.19/portable/packages/esp32/hardware/esp32/2.0.3/tools/sdk/esp32s3/qspi_qspi -T memory.ld -T sections.ld -T esp32s3.rom.ld -T esp32s3.rom.api.ld -T esp32s3.rom.libgcc.ld -T esp32s3.rom.newlib.ld -T esp32s3.rom.version.ld -T esp32s3.rom.newlib-time.ld -T esp32s3.peripherals.ld -mlongcalls -Wl,--cref -Wl,--gc-sections -fno-rtti -fno-lto -u _Z5setupv -u _Z4loopv -u esp_app_desc -u pthread_include_pthread_impl -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl -u pthread_include_pthread_rwlock_impl -u include_esp_phy_override -u ld_include_highint_hdl -u start_app -u start_app_other_cores -u __ubsan_include -Wl,--wrap=longjmp -u __assert_func -u vfs_include_syscalls_impl -Wl,--undefined=uxTopUsedPriority -u app_main -u newlib_include_heap_impl -u newlib_include_syscalls_impl -u newlib_include_pthread_impl -u newlib_include_assert_impl -u __cxa_guard_dummy -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=0 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 -Wl,--start-group /tmp/arduino_build_345963/sketch/usbjoywa.ino.cpp.o /tmp/arduino_build_345963/libraries/WiFi/WiFi.cpp.o /tmp/arduino_build_345963/libraries/WiFi/WiFiAP.cpp.o /tmp/arduino_build_345963/libraries/WiFi/WiFiClient.cpp.o /tmp/arduino_build_345963/libraries/WiFi/WiFiGeneric.cpp.o /tmp/arduino_build_345963/libraries/WiFi/WiFiMulti.cpp.o /tmp/arduino_build_345963/libraries/WiFi/WiFiSTA.cpp.o /tmp/arduino_build_345963/libraries/WiFi/WiFiScan.cpp.o /tmp/arduino_build_345963/libraries/WiFi/WiFiServer.cpp.o /tmp/arduino_build_345963/libraries/WiFi/WiFiUdp.cpp.o /tmp/arduino_build_345963/libraries/WebServer/Parsing.cpp.o /tmp/arduino_build_345963/libraries/WebServer/WebServer.cpp.o /tmp/arduino_build_345963/libraries/WebServer/detail/mimetable.cpp.o /tmp/arduino_build_345963/libraries/ESPmDNS/ESPmDNS.cpp.o /tmp/arduino_build_345963/libraries/WiFiManager/WiFiManager.cpp.o /tmp/arduino_build_345963/libraries/Update/HttpsOTAUpdate.cpp.o /tmp/arduino_build_345963/libraries/Update/Updater.cpp.o /tmp/arduino_build_345963/libraries/DNSServer/DNSServer.cpp.o /tmp/arduino_build_345963/libraries/FS/FS.cpp.o /tmp/arduino_build_345963/libraries/FS/vfs_api.cpp.o /tmp/arduino_cache_459655/core/core_53bd8a414b9632a526d3ae113b33cd8a.a -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lasio -lbt -lcbor -lunity -lcmock -lcoap -lnghttp -lesp-tls -lesp_adc_cal -lesp_hid -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lesp_https_server -lesp_lcd -lprotobuf-c -lprotocomm -lmdns -lesp_local_ctrl -lsdmmc -lesp_serial_slave_link -lesp_websocket_client -lexpat -lwear_levelling -lfatfs -lfreemodbus -ljsmn -ljson -llibsodium -lmqtt -lopenssl -lperfmon -lspiffs -lusb -lulp -lwifi_provisioning -lbutton -lrmaker_common -ljson_parser -ljson_generator -lesp_schedule -lesp_rainmaker -lqrcode -lws2812_led -lesp-dsp -lesp-sr -lesp32-camera -lesp_littlefs -lfb_gfx -lasio -lcbor -lcmock -lunity -lcoap -lesp_lcd -lesp_websocket_client -lexpat -lfreemodbus -ljsmn -llibsodium -lperfmon -lusb -lesp_adc_cal -lesp_hid -lfatfs -lwear_levelling -lopenssl -lesp_rainmaker -lesp_local_ctrl -lesp_https_server -lwifi_provisioning -lprotocomm -lbt -lbtdm_app -lprotobuf-c -lmdns -lrmaker_common -lmqtt -ljson_parser -ljson_generator -lesp_schedule -lqrcode -larduino_tinyusb -lcat_face_detect -lhuman_face_detect -lcolor_detect -lmfn -ldl -lwakenet -lhufzip -lesp_audio_front_end -lesp_audio_processor -lmultinet -lesp-sr -lwakenet -lhufzip -lesp_audio_front_end -lesp_audio_processor -lmultinet -ljson -lspiffs -ldl_lib -lc_speech_features -lesp_tts_chinese -lvoice_set_xiaole -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lphy -lbtbb -lesp_phy -lphy -lbtbb -lesp_phy -lphy -lbtbb -lxt_hal -lm -lnewlib -lstdc++ -lpthread -lgcc -lcxx -lapp_trace -lgcov -lapp_trace -lgcov -lc -Wl,--end-group -Wl,-EL -o /tmp/arduino_build_345963/usbjoywa.ino.elf
tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /tmp/arduino_cache_459655/core/core_53bd8a414b9632a526d3ae113b33cd8a.a(esp32-hal-misc.c.o):(.literal.temperatureRead+0x4): undefined reference to `temp_sensor_set_config'
tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /tmp/arduino_cache_459655/core/core_53bd8a414b9632a526d3ae113b33cd8a.a(esp32-hal-misc.c.o):(.literal.temperatureRead+0x8): undefined reference to `temp_sensor_start'
tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /tmp/arduino_cache_459655/core/core_53bd8a414b9632a526d3ae113b33cd8a.a(esp32-hal-misc.c.o):(.literal.temperatureRead+0xc): undefined reference to `temp_sensor_read_celsius'
tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /tmp/arduino_cache_459655/core/core_53bd8a414b9632a526d3ae113b33cd8a.a(esp32-hal-misc.c.o):(.literal.temperatureRead+0x10): undefined reference to `temp_sensor_stop'
tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /tmp/arduino_cache_459655/core/core_53bd8a414b9632a526d3ae113b33cd8a.a(esp32-hal-misc.c.o): in function `temperatureRead':
hardware/esp32/2.0.3/cores/esp32/esp32-hal-misc.c:71: undefined reference to `temp_sensor_set_config'
tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /tmp/autobuild_usbjoywa_21717/arduino-1.8.19/portable/packages/esp32/hardware/esp32/2.0.3/cores/esp32/esp32-hal-misc.c:72: undefined reference to `temp_sensor_start'
tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /tmp/autobuild_usbjoywa_21717/arduino-1.8.19/portable/packages/esp32/hardware/esp32/2.0.3/cores/esp32/esp32-hal-misc.c:73: undefined reference to `temp_sensor_read_celsius'
tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /tmp/autobuild_usbjoywa_21717/arduino-1.8.19/portable/packages/esp32/hardware/esp32/2.0.3/cores/esp32/esp32-hal-misc.c:74: undefined reference to `temp_sensor_stop'
collect2: error: ld returned 1 exit status

A one line fix works for S3, S2, C3, and regular ESP32.

diff --git a/WiFiManager.cpp b/WiFiManager.cpp
index 6ca3018..e6f0317 100644
--- a/WiFiManager.cpp
+++ b/WiFiManager.cpp
@@ -2172,7 +2172,7 @@ String WiFiManager::getInfoData(String id){
     p.replace(FPSTR(T_1),WiFi.getAutoConnect() ? FPSTR(S_enable) : FPSTR(S_disable));
   }
   #endif
-  #ifdef ESP32
+  #if defined(ESP32) && !defined(ARDUINO_ESP32S3_DEV)
   else if(id==F("temp")){
     // temperature is not calibrated, varying large offsets are present, use for relative temp changes only
     p = FPSTR(HTTP_INFO_temp);
<!-- gh-comment-id:1166632407 --> @touchgadget commented on GitHub (Jun 26, 2022): WM fails to compile on ESP32S3 because the temperature sensor API functions are not implemented. ``` Linking everything together... tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/xtensa-esp32s3-elf-g++ -Wl,--Map=/tmp/arduino_build_345963/usbjoywa.ino.map -L/tmp/autobuild_usbjoywa_21717/arduino-1.8.19/portable/packages/esp32/hardware/esp32/2.0.3/tools/sdk/esp32s3/lib -L/tmp/autobuild_usbjoywa_21717/arduino-1.8.19/portable/packages/esp32/hardware/esp32/2.0.3/tools/sdk/esp32s3/ld -L/tmp/autobuild_usbjoywa_21717/arduino-1.8.19/portable/packages/esp32/hardware/esp32/2.0.3/tools/sdk/esp32s3/qspi_qspi -T memory.ld -T sections.ld -T esp32s3.rom.ld -T esp32s3.rom.api.ld -T esp32s3.rom.libgcc.ld -T esp32s3.rom.newlib.ld -T esp32s3.rom.version.ld -T esp32s3.rom.newlib-time.ld -T esp32s3.peripherals.ld -mlongcalls -Wl,--cref -Wl,--gc-sections -fno-rtti -fno-lto -u _Z5setupv -u _Z4loopv -u esp_app_desc -u pthread_include_pthread_impl -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl -u pthread_include_pthread_rwlock_impl -u include_esp_phy_override -u ld_include_highint_hdl -u start_app -u start_app_other_cores -u __ubsan_include -Wl,--wrap=longjmp -u __assert_func -u vfs_include_syscalls_impl -Wl,--undefined=uxTopUsedPriority -u app_main -u newlib_include_heap_impl -u newlib_include_syscalls_impl -u newlib_include_pthread_impl -u newlib_include_assert_impl -u __cxa_guard_dummy -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=0 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 -Wl,--start-group /tmp/arduino_build_345963/sketch/usbjoywa.ino.cpp.o /tmp/arduino_build_345963/libraries/WiFi/WiFi.cpp.o /tmp/arduino_build_345963/libraries/WiFi/WiFiAP.cpp.o /tmp/arduino_build_345963/libraries/WiFi/WiFiClient.cpp.o /tmp/arduino_build_345963/libraries/WiFi/WiFiGeneric.cpp.o /tmp/arduino_build_345963/libraries/WiFi/WiFiMulti.cpp.o /tmp/arduino_build_345963/libraries/WiFi/WiFiSTA.cpp.o /tmp/arduino_build_345963/libraries/WiFi/WiFiScan.cpp.o /tmp/arduino_build_345963/libraries/WiFi/WiFiServer.cpp.o /tmp/arduino_build_345963/libraries/WiFi/WiFiUdp.cpp.o /tmp/arduino_build_345963/libraries/WebServer/Parsing.cpp.o /tmp/arduino_build_345963/libraries/WebServer/WebServer.cpp.o /tmp/arduino_build_345963/libraries/WebServer/detail/mimetable.cpp.o /tmp/arduino_build_345963/libraries/ESPmDNS/ESPmDNS.cpp.o /tmp/arduino_build_345963/libraries/WiFiManager/WiFiManager.cpp.o /tmp/arduino_build_345963/libraries/Update/HttpsOTAUpdate.cpp.o /tmp/arduino_build_345963/libraries/Update/Updater.cpp.o /tmp/arduino_build_345963/libraries/DNSServer/DNSServer.cpp.o /tmp/arduino_build_345963/libraries/FS/FS.cpp.o /tmp/arduino_build_345963/libraries/FS/vfs_api.cpp.o /tmp/arduino_cache_459655/core/core_53bd8a414b9632a526d3ae113b33cd8a.a -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lasio -lbt -lcbor -lunity -lcmock -lcoap -lnghttp -lesp-tls -lesp_adc_cal -lesp_hid -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lesp_https_server -lesp_lcd -lprotobuf-c -lprotocomm -lmdns -lesp_local_ctrl -lsdmmc -lesp_serial_slave_link -lesp_websocket_client -lexpat -lwear_levelling -lfatfs -lfreemodbus -ljsmn -ljson -llibsodium -lmqtt -lopenssl -lperfmon -lspiffs -lusb -lulp -lwifi_provisioning -lbutton -lrmaker_common -ljson_parser -ljson_generator -lesp_schedule -lesp_rainmaker -lqrcode -lws2812_led -lesp-dsp -lesp-sr -lesp32-camera -lesp_littlefs -lfb_gfx -lasio -lcbor -lcmock -lunity -lcoap -lesp_lcd -lesp_websocket_client -lexpat -lfreemodbus -ljsmn -llibsodium -lperfmon -lusb -lesp_adc_cal -lesp_hid -lfatfs -lwear_levelling -lopenssl -lesp_rainmaker -lesp_local_ctrl -lesp_https_server -lwifi_provisioning -lprotocomm -lbt -lbtdm_app -lprotobuf-c -lmdns -lrmaker_common -lmqtt -ljson_parser -ljson_generator -lesp_schedule -lqrcode -larduino_tinyusb -lcat_face_detect -lhuman_face_detect -lcolor_detect -lmfn -ldl -lwakenet -lhufzip -lesp_audio_front_end -lesp_audio_processor -lmultinet -lesp-sr -lwakenet -lhufzip -lesp_audio_front_end -lesp_audio_processor -lmultinet -ljson -lspiffs -ldl_lib -lc_speech_features -lesp_tts_chinese -lvoice_set_xiaole -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lphy -lbtbb -lesp_phy -lphy -lbtbb -lesp_phy -lphy -lbtbb -lxt_hal -lm -lnewlib -lstdc++ -lpthread -lgcc -lcxx -lapp_trace -lgcov -lapp_trace -lgcov -lc -Wl,--end-group -Wl,-EL -o /tmp/arduino_build_345963/usbjoywa.ino.elf tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /tmp/arduino_cache_459655/core/core_53bd8a414b9632a526d3ae113b33cd8a.a(esp32-hal-misc.c.o):(.literal.temperatureRead+0x4): undefined reference to `temp_sensor_set_config' tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /tmp/arduino_cache_459655/core/core_53bd8a414b9632a526d3ae113b33cd8a.a(esp32-hal-misc.c.o):(.literal.temperatureRead+0x8): undefined reference to `temp_sensor_start' tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /tmp/arduino_cache_459655/core/core_53bd8a414b9632a526d3ae113b33cd8a.a(esp32-hal-misc.c.o):(.literal.temperatureRead+0xc): undefined reference to `temp_sensor_read_celsius' tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /tmp/arduino_cache_459655/core/core_53bd8a414b9632a526d3ae113b33cd8a.a(esp32-hal-misc.c.o):(.literal.temperatureRead+0x10): undefined reference to `temp_sensor_stop' tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /tmp/arduino_cache_459655/core/core_53bd8a414b9632a526d3ae113b33cd8a.a(esp32-hal-misc.c.o): in function `temperatureRead': hardware/esp32/2.0.3/cores/esp32/esp32-hal-misc.c:71: undefined reference to `temp_sensor_set_config' tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /tmp/autobuild_usbjoywa_21717/arduino-1.8.19/portable/packages/esp32/hardware/esp32/2.0.3/cores/esp32/esp32-hal-misc.c:72: undefined reference to `temp_sensor_start' tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /tmp/autobuild_usbjoywa_21717/arduino-1.8.19/portable/packages/esp32/hardware/esp32/2.0.3/cores/esp32/esp32-hal-misc.c:73: undefined reference to `temp_sensor_read_celsius' tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /tmp/autobuild_usbjoywa_21717/arduino-1.8.19/portable/packages/esp32/hardware/esp32/2.0.3/cores/esp32/esp32-hal-misc.c:74: undefined reference to `temp_sensor_stop' collect2: error: ld returned 1 exit status ``` A one line fix works for S3, S2, C3, and regular ESP32. ``` diff --git a/WiFiManager.cpp b/WiFiManager.cpp index 6ca3018..e6f0317 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -2172,7 +2172,7 @@ String WiFiManager::getInfoData(String id){ p.replace(FPSTR(T_1),WiFi.getAutoConnect() ? FPSTR(S_enable) : FPSTR(S_disable)); } #endif - #ifdef ESP32 + #if defined(ESP32) && !defined(ARDUINO_ESP32S3_DEV) else if(id==F("temp")){ // temperature is not calibrated, varying large offsets are present, use for relative temp changes only p = FPSTR(HTTP_INFO_temp); ```
Author
Owner

@tablatronix commented on GitHub (Jun 26, 2022):

untested, added a wm flag so it can be easily modified or removed later

<!-- gh-comment-id:1166652766 --> @tablatronix commented on GitHub (Jun 26, 2022): untested, added a wm flag so it can be easily modified or removed later
Author
Owner

@touchgadget commented on GitHub (Jun 27, 2022):

github.com/tzapu/WiFiManager@06c63720f6/WiFiManager.cpp (L2175)

The above produces a warning. warning: extra tokens at end of #ifdef directive

I am pretty sure #ifdef only allows the name of a symbol, not an expression.

The following works for me.

#if defined(ESP32) && !defined(WM_NOTEMP)

The same extra tokens warning appears when building AutoConnectWithFSParameters.ino. There are 3 occurences. And 3 more in AutoConnectWithFSParametersAndCustomIP.ino.

github.com/tzapu/WiFiManager@06c63720f6/examples/Parameters/SPIFFS/AutoConnectWithFSParameters/AutoConnectWithFSParameters.ino (L49)

Maybe the #ifdef should look like this.

    #if defined(ARDUINOJSON_VERSION_MAJOR) && ARDUINOJSON_VERSION_MAJOR >= 6
<!-- gh-comment-id:1166759050 --> @touchgadget commented on GitHub (Jun 27, 2022): https://github.com/tzapu/WiFiManager/blob/06c63720f60ec6e169c9c4cb10f52896f6b97d74/WiFiManager.cpp#L2175 The above produces a warning. `warning: extra tokens at end of #ifdef directive` I am pretty sure #ifdef only allows the name of a symbol, not an expression. The following works for me. ``` #if defined(ESP32) && !defined(WM_NOTEMP) ``` The same `extra tokens` warning appears when building AutoConnectWithFSParameters.ino. There are 3 occurences. And 3 more in AutoConnectWithFSParametersAndCustomIP.ino. https://github.com/tzapu/WiFiManager/blob/06c63720f60ec6e169c9c4cb10f52896f6b97d74/examples/Parameters/SPIFFS/AutoConnectWithFSParameters/AutoConnectWithFSParameters.ino#L49 Maybe the #ifdef should look like this. ``` #if defined(ARDUINOJSON_VERSION_MAJOR) && ARDUINOJSON_VERSION_MAJOR >= 6 ```
Author
Owner

@tablatronix commented on GitHub (Jun 27, 2022):

I was wondering about those, kept forgetting to check that as my compiler is not always -Wall

<!-- gh-comment-id:1166826291 --> @tablatronix commented on GitHub (Jun 27, 2022): I was wondering about those, kept forgetting to check that as my compiler is not always -Wall
Author
Owner

@touchgadget commented on GitHub (Jun 27, 2022):

Thanks, ESP32S3 builds are working fine.

<!-- gh-comment-id:1166900919 --> @touchgadget commented on GitHub (Jun 27, 2022): Thanks, ESP32S3 builds are working fine.
Author
Owner

@shashi5841 commented on GitHub (Sep 10, 2022):

Thanks, ESP32S3 builds are working fine.

I am facing the same issue can you please guide me on how to solve it .

<!-- gh-comment-id:1242645746 --> @shashi5841 commented on GitHub (Sep 10, 2022): > Thanks, ESP32S3 builds are working fine. I am facing the same issue can you please guide me on how to solve it .
Author
Owner

@shashi5841 commented on GitHub (Sep 10, 2022):

Tested with esp32-s3 with the same issue.
ESP32-S3 with WiFiManager lib.

Can't find SSID AutoConnectAP, when the module is in AP mode.

Terminal output:

SPIFFS mounted
*wm:[1] AutoConnect
*wm:[2] ESP32 event handler enabled
*wm:[2] Connecting as wifi client...
*wm:[2] setSTAConfig static ip not set, skipping
*wm:[1] Connecting to SAVED AP: espressif
*wm:[1] connectTimeout not set, ESP waitForConnectResult...
*wm:[2] [EVENT] WIFI_REASON: 201
*wm:[2] [EVENT] WIFI_REASON: NO_AP_FOUND
*wm:[2] Connection result: WL_NO_SSID_AVAIL
*wm:[1] AutoConnect: FAILED
*wm:[2] Starting Config Portal
*wm:[2] Disabling STA
*wm:[2] Enabling AP
*wm:[1] StartAP with SSID: AutoConnectAP
*wm:[2] AP has anonymous access!
*wm:[1] AP IP address: 192.168.4.1
*wm:[1] Starting Web Portal
*wm:[2] HTTP server started
*wm:[2] Config Portal Running, blocking, waiting for clients...
*wm:[2] NUM CLIENTS: 0
*wm:[2] NUM CLIENTS: 0
*wm:[2] NUM CLIENTS: 0
*wm:[2] NUM CLIENTS: 0

I used 4 different mobile phones and different laptop PC to find esp32s3 in the WiFi list but the module was not broadcasting.

Used the latest library of WiFi manager v2.0.12-beta

Please advise what to do.

<!-- gh-comment-id:1242647442 --> @shashi5841 commented on GitHub (Sep 10, 2022): Tested with esp32-s3 with the same issue. ESP32-S3 with WiFiManager lib. Can't find SSID AutoConnectAP, when the module is in AP mode. Terminal output: SPIFFS mounted *wm:[1] AutoConnect *wm:[2] ESP32 event handler enabled *wm:[2] Connecting as wifi client... *wm:[2] setSTAConfig static ip not set, skipping *wm:[1] Connecting to SAVED AP: espressif *wm:[1] connectTimeout not set, ESP waitForConnectResult... *wm:[2] [EVENT] WIFI_REASON: 201 *wm:[2] [EVENT] WIFI_REASON: NO_AP_FOUND *wm:[2] Connection result: WL_NO_SSID_AVAIL *wm:[1] AutoConnect: FAILED *wm:[2] Starting Config Portal *wm:[2] Disabling STA *wm:[2] Enabling AP *wm:[1] StartAP with SSID: AutoConnectAP *wm:[2] AP has anonymous access! *wm:[1] AP IP address: 192.168.4.1 *wm:[1] Starting Web Portal *wm:[2] HTTP server started *wm:[2] Config Portal Running, blocking, waiting for clients... *wm:[2] NUM CLIENTS: 0 *wm:[2] NUM CLIENTS: 0 *wm:[2] NUM CLIENTS: 0 *wm:[2] NUM CLIENTS: 0 I used 4 different mobile phones and different laptop PC to find esp32s3 in the WiFi list but the module was not broadcasting. Used the latest library of WiFi manager v2.0.12-beta Please advise what to do.
Author
Owner

@tablatronix commented on GitHub (Sep 10, 2022):

@shashi5841 please see #1482

<!-- gh-comment-id:1242751860 --> @tablatronix commented on GitHub (Sep 10, 2022): @shashi5841 please see #1482
Author
Owner

@roleroz commented on GitHub (Jun 1, 2023):

Do we still need to disable the temp sensor for ESP32S3?, it seems to be working now

At least, I forked this, removed the WM_NOTEMP macro, and linked it into my ESP32-S3 devkit board, it compiled, linked and flashed, and it seems to be working fine

<!-- gh-comment-id:1571393962 --> @roleroz commented on GitHub (Jun 1, 2023): Do we still need to disable the temp sensor for ESP32S3?, it seems to be working now At least, I forked this, removed the WM_NOTEMP macro, and linked it into my ESP32-S3 devkit board, it compiled, linked and flashed, and it seems to be working fine
Author
Owner

@roleroz commented on GitHub (Jun 1, 2023):

For the record, this seems to have been added with IDF's 4.4 version (https://github.com/espressif/arduino-esp32/pull/6994)

<!-- gh-comment-id:1571397067 --> @roleroz commented on GitHub (Jun 1, 2023): For the record, this seems to have been added with IDF's 4.4 version (https://github.com/espressif/arduino-esp32/pull/6994)
Author
Owner

@tablatronix commented on GitHub (Jun 1, 2023):

I can add a ver check maybe

<!-- gh-comment-id:1571909885 --> @tablatronix commented on GitHub (Jun 1, 2023): I can add a ver check maybe
Author
Owner

@roleroz commented on GitHub (Jun 18, 2023):

Should we reopen this issue?, or start a new one?

<!-- gh-comment-id:1595961307 --> @roleroz commented on GitHub (Jun 18, 2023): Should we reopen this issue?, or start a new one?
Author
Owner

@tablatronix commented on GitHub (Jun 18, 2023):

New one

<!-- gh-comment-id:1596158664 --> @tablatronix commented on GitHub (Jun 18, 2023): New one
Author
Owner

@roleroz commented on GitHub (Jun 19, 2023):

Filed https://github.com/tzapu/WiFiManager/issues/1629. Please let me know if I'm missing anything, as this is the first time filing an issue against WiFiManager 😉

<!-- gh-comment-id:1597457103 --> @roleroz commented on GitHub (Jun 19, 2023): Filed https://github.com/tzapu/WiFiManager/issues/1629. Please let me know if I'm missing anything, as this is the first time filing an issue against WiFiManager :wink:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1215
No description provided.