You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like setHostname() function only writes into temporary buffer that is then copied into low level network layer by the first WiFi.mode(WIFI_STA) call.
In your example moving WiFi.setHostname() above WiFi.mode() should solve the issue.
Board
LilyGO TTGO T-Camera ESP32-WROVER
Device Description
LilyGO TTGO T-Camera ESP32-WROVER
Hardware Configuration
nothing
Version
v2.0.1
IDE Name
Aruido IDE
Operating System
Linux
Flash frequency
80mhz
PSRAM enabled
no
Upload speed
921600
Description
In arduino core 1.06 is WiFi.setHostname ok and works with sketch below.
When switching to arduin core 2.x, it fail I see the hostname: esp32-88DB80
I should expect ESP32-Test, this I get switching to core 1.06
Sketch
Debug Message
Other Steps to Reproduce
core 1.06 works, 2.0 and higher fails
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: