Skip to content
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

OTA works great, but Hostname not resolved #6

Open
consolacion opened this issue Nov 22, 2016 · 3 comments
Open

OTA works great, but Hostname not resolved #6

consolacion opened this issue Nov 22, 2016 · 3 comments

Comments

@consolacion
Copy link

As in the title, the OTA works great, but the hostname in the network/OTA ports in the IDE does not say "OTA-humidifier" as it should be, but it just says "esp8266 at 192.168.1.100" which is the correct ip and the upload goes fine.
When I try the "Basic-OTA" example sketch, I get the proper Hostname in my network ports in the IDE.
Not a huge problem, just kinda nagging my brain 'Why'

@krzychb
Copy link
Owner

krzychb commented Nov 22, 2016

Hi @consolacion,

If it works for BasicOTA.ino and not in another sketch, then likely something basis is missing or misplaced.
I assume you were testing OnlineHumidifier-Maintain.ino sketch.
If so, then I would double check if the following lines are present and placed like in original OnlineHumidifier-Maintain.ino sketch:

const char* host = "OTA-Humidifier";

...

ArduinoOTA.setHostname(host);

@consolacion
Copy link
Author

Thanks.
No it is in the A1-MQTT sketch but I guess that has the same functionality. I took the sketch directly from github and I did check that those 2 lines are present.
I will try the 'maintain sketch' couldnt test OTA on that one earlier coz didnt have Python installed yet.
Will let you know.

(on a side note OTA only working on Windows, not Linux but that is not the issue here :-) )

@consolacion
Copy link
Author

I tried. took the Maintain sketch directly from github, only added' credentials and same effect. The Basic OTA sketch signs in with that name and the maintainsketch with "esp8266 at 192.168.1.xxx"
very odd, more of an intriguing nuisance than a real problem. Tried the password setting... that just works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants