Open
Description
I have more than 5 NodeMCUs installed at various places in my office. I am trying to update the binaries over OTA using Arduino IDE. I have set different hostnames to each of them while uploading through USB. However, when I see into Arduino IDEs Tools->Port, I find them all taking up the name of the lastly set hostname. Interestingly, the IP addresses appended are displayed properly.
My Configuration:
- Ubuntu 14.04 (64-bit)
- Arduino IDE 1.8.5
- using ArduinoOTA for OTA support
Steps to Repro:
- Open BasicOTA Sketch
- Change ssid, password as per your configuration
- Set Hostname using ArduinoOTA.setHostname(hostName)
- Connect NodeMCU using USB.
- Select Port ( local -*tty )
- Upload the sketch.
- Disconnect the NodeMCU and connect it to wall plug charger.
- Connect another NodeMCU via USB.
- Change hostname to something else.
- Select Port ( local -*tty )
- Upload the sketch.
- Disconnect the NodeMCU and connect it to wall plug charger.
- Go to Tools->Port
- Give it some time or restart the IDE.
- The lastly given name will be shown to both the NodeMCUs with correct IP addresses.
I even tried with the latest hourly-build version of IDE but with no luck.
Please let me know if any more info is needed.
Thanks,
Purush