arduino / arduino/Arduino

Last set host name shown to all the network ports while trying OTA update.

Open
#7,602 1 comment 0 reactions 0 assignees View on GitHub
Component: Uploading jmdns Type: Bug
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

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:**

1. Open BasicOTA Sketch
2. Change ssid, password as per your configuration
3. Set Hostname using ArduinoOTA.setHostname(hostName)
4. Connect NodeMCU using USB.
5. Select Port ( local -*tty )
6. Upload the sketch.
7. Disconnect the NodeMCU and connect it to wall plug charger.
7. Connect another NodeMCU via USB.
8. Change **hostname to something else**.
9. Select Port ( local -*tty )
10. Upload the sketch.
11. Disconnect the NodeMCU and connect it to wall plug charger.
12. Go to Tools->Port
13. Give it some time or restart the IDE.
14. 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

![screenshot from 2018-05-16 18 01 28](https://user-images.githubusercontent.com/24937945/40117085-7584745c-5933-11e8-9bc1-7ecde52989de.png)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in Arduino IDE 1.8.5 on Ubuntu 14.04 with two NodeMCUs using ArduinoOTA and different hostnames. Inspect the Tools→Port network-port discovery behavior; done means each device shows its own hostname alongside the correct IP address.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.