-
Notifications
You must be signed in to change notification settings - Fork 7.6k
WiFi hostname set/get is not working correctly #4752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you try |
This has been fixed here: ad4cf14 next RC will have it |
@me-no-dev I am still having this issue, and if I use the workaround mentioned by @kapyar I get hostname "esp32-arduino" instead of "espressif", but not the hostname I assign with the WiFi.setHostname command. |
@heisenberg2980 any chance you can try this with github version of master instead? |
@me-no-dev what do you mean with "github version of master"? At the moment my sketch is using these two arduino libraries:
And these are all the libraries being used:
|
@heisenberg2980 seems that you are using a quite old esp core (1.0.5-rc1). We are on version 2.0.2 now and 2.0.3 is coming up (which will include the fix). If you want to try it now, you need to install arduino-esp32 from git and not from the board manager. If this sounds complicated, just hold on for a few days for 2.0.3 to be out. |
@me-no-dev thank you for the info, how do you know the version of the esp core I am using, is it inside of one of the libraries I mentioned? |
Sorry @heisenberg2980 I thought you also posted the issue and up there it's said that 1.0.5-rc1 is used. I do not know which version you are using. Updates happen through ArduinoIDE's board manager |
@me-no-dev right, the version I have in Arduino IDE is 1.0.4, but for this sketch I am using Visual Studio Code instead, Regarding the Arduino IDE, do you know by any change why it is just offering me versions up to 1.0.6 and not the versions 2.0.0 and above that are available from August 2021 (https://github.com/espressif/arduino-esp32/releases)? |
You are probably using the old json link that is no longer updated :) |
@me-no-dev You are completely right!! version 2.0.2 installed now in Arduino IDE, thank you very much for your help. I just need to figure out how to use it on my sketch in VS Code. |
Hardware:
Board: ESP32 Dev Module
Core Installation version: 1.0.5-rc1
IDE name: Arduino IDE 1.8.7
Flash Frequency: 40Mhz
PSRAM enabled: no
Upload Speed: 115200
Computer OS: Windows 7
Description:
Starting core version 1.0.5-rc1 and up to core version 1.0.5-rc6 WiFi hostname set/get is not working correctly.
Anything you set by calling WiFi.setHostname("Hostname") then you call WiFi.getHostname() and you get "espressif".
Sketch: (leave the backquotes for code formatting)
Debug Messages:
The text was updated successfully, but these errors were encountered: