-
Notifications
You must be signed in to change notification settings - Fork 132
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
hostname will not be resolved at upload #1639
Comments
The hostname resolution happens at the os level. |
thanks for reply, but where does sloeber take this string? i want to have the command -i set with the local IP eg 192.168.0.x |
project properties->sloeber? |
not really, the port shows the address of the ESP device. if you change the line to the IP only, espota will then switch to a local port, which is obviously not available, eg changing "BEwecker.local 192.168.0.50" to "192.168.0.50" will fail ... but "BEwecker.local" does exist, bcs this can be entered in a browser and will be resolved to "192.168.0.50", which is correct |
Have you tried "192.168.0.50 192.168.0.50" in case of ip adress it is a 2 field one is the name one is the ip I don't recall the order. |
i think yes, but i will double check in the eve |
your tip did it, thanks! yesterday i tried ArduinoOTA.setHostname("192.168.0.50") which failed. but the following line is still needed: ArduinoOTA.setPort(3232) otherwise sloeber will use port 8266 as default in spite of ESP32 is choosen as plattform. btw after changing any of the project properties this error comes up: "...\Release/file_opts: No such file or directory" (this can only be cleared after creating a "file_opts" file in the release directoray by hand - why is that? br |
file_opts is a way ESP32 uses to provide the user to add build options to the build command. Something you can do in Sloeber as well. |
hello,
using last sloeber version, ESP32 and OTA for upload ...
.......s\esp32\hardware\esp32\2.0.14/tools/espota.exe -r -i BEwecker.local -p 3232 .....
the above hostname will not be recognized from sloeber, but from arduino IDE 2.x
whats wrong?
code snippet:
ArduinoOTA.setPassword("1234");
ArduinoOTA.setPort(3232);
ArduinoOTA.setHostname("BEwecker");
ArduinoOTA.setMdnsEnabled(true);
ArduinoOTA.begin();
best regards
andreas
The text was updated successfully, but these errors were encountered: