Skip to content

Make it possible to use ArduinoOTA without mDNS? #1297

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

Closed
sven337 opened this issue Dec 24, 2015 · 7 comments
Closed

Make it possible to use ArduinoOTA without mDNS? #1297

sven337 opened this issue Dec 24, 2015 · 7 comments

Comments

@sven337
Copy link

sven337 commented Dec 24, 2015

As it is currently implemented, the ArduinoOTA class:
1-requires #include <ESP8266mDNS.h> in the sketch(I'm not sure why its own include seems not to work)
2-effectively uses mDNS with no ability to disable it

This issue is a request to make it possible to use ArduinoOTA without mDNS. The justification for me is that I don't want mDNS in the first place, that it's not required for OTAs, and that it bloats the sketch size (which on small flash sizes is a real issue).

Something like #define ARDUINO_OTA_NO_MDNS would probably be feasible?

Thank you

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@igrr
Copy link
Member

igrr commented Dec 24, 2015

  1. Include of mDNS library in the sketch is required on Arduino 1.6.5/1.6.6, but shouldn't be required on 1.6.7. This is because library dependency tracking has been added to arduino-builder.
  2. Will look into this

@me-no-dev
Copy link
Collaborator

ArduinoOTA without the mDNS backing is just OTA. It's painless to add a parameter to the begin method to not start mDNS.
That would not fix the "missing" include, but as users move on to newer versions of the IDE, it will fade away.

@DaAwesomeP
Copy link

Is it possible to manually specify an IP in the IDE for OTA instead of using mDNS?

@me-no-dev
Copy link
Collaborator

the IDE is using mDNS to discover the devices, so no you can not, but you can run the command manually and upload your bin to IP (you would need to comment those lines to stop mDNS)

@DaAwesomeP
Copy link

I settled on using ESP8266HTTPUpdateServer. Thanks!

@download13
Copy link

This would be really useful for my case as well. I'm using another library that already uses mDNS for auto-discovery. It seems redundant to have it broadcasting two different names for no reason. Especially since I'm using a command line tool and don't need to use the IDE to send OTA updates.

@devyte
Copy link
Collaborator

devyte commented Dec 14, 2018

Closing via #5494
ArduinoOTA.begin()',now accepts an optional bool flag, which when false skips manipulation of MDNS.

@devyte devyte closed this as completed Dec 14, 2018
@devyte devyte added this to the 2.5.0 milestone Dec 14, 2018
@devyte devyte self-assigned this Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants