-
-
Notifications
You must be signed in to change notification settings - Fork 803
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
Discover OTA-able esp8266/Arduino modules using dns-sd / mDNS #463
Comments
In general I like the idea - but I think its important to handle this different from the current serial implementation: Usually one or a few development devices are connected via serial and it's easy to make sure that the only the device(s) you want to flash is(are) connected. I would suggest to let the user decide by giving a prompt in the terminal. |
On arduino ide whit esp core installed, the mDNS discovery is already present. This is thrue also for standard serial port, because you can have many esp connected to the same pc, so in the arduino ide you auto-found all available serial port, but after you must manually choose whitch ones you need use |
@Testato PlatformIO also allows to manually specify upload port as a serial device, media disk or IP/mDNS record. See |
Yes, i know, For example in your home you have 10 ESP with the OTA, every ESP have a unique mDNS name, so on arduino you receive automatically all 10 names in the list, and you will choose to witch upload. Instead on Platformio you need remember exactly the name of all ESP that you have in your Home |
Seeing as how platformio.ini should be revision controlled, I want to avoid putting a line in there that pertains only to my own personal development environment. |
Will be reflected in PIO Home -> Devices soon. |
… issue #1236, issue #1235, issue #953, issue #1118, issue #1107, issue #1196, issue #1179, issue #1161, issue #1126, issue #104, issue #1033, issue #1034, issue #1175, issue #1173, issue #1155, issue #1188, issue #1111, issue #1153, issue #1150, issue #1145, issue #1139, issue #1137, issue #1170, issue #1157, issue #1102, issue #1105, issue #1140, issue #1154, issue #1066, issue #1038, issue #1054, issue #1055, issue #1061, issue #1017)
To use OTA on the esp8266, we currently have to put something like
upload_port=esp8266-c1ab73.local
intoplatformio.ini
.More options:
http://docs.platformio.org/en/latest/platforms/espressif.html#platform-espressif-ota
This seems overly static to me. Wouldn't it be great if platformio would detect OTA-able devices just as seamless as it does auto-detect the serial port?
Turns out this would be pretty easy to implement using avahi (there are python bindings!)
We could also check the
TXT
record to make sure it is the correct device model; and we could ask the user to select one from all available update-able devices on the network.The text was updated successfully, but these errors were encountered: