Skip to content

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

Description

@PurushottamPawar

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.
  8. Connect another NodeMCU via USB.
  9. Change hostname to something else.
  10. Select Port ( local -*tty )
  11. Upload the sketch.
  12. Disconnect the NodeMCU and connect it to wall plug charger.
  13. Go to Tools->Port
  14. Give it some time or restart the IDE.
  15. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: UploadingUploading programs to an Arduino boardType: BugjmdnsMulti-cast DNS Java library used in the Arduino IDE's source code

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions