I had to dig deep to find it in the .cpp files for Ethernet, DHCP and CIAO. If anyone wants to use multiple Arduinos on a broadcast domain, they WILL need to change the default names.
Where?Thanks for using Ciao. I updated the Ciao documentation to explicitly state how to set the Arduino's hostname. In short, you use the three-argument variant of Ciao.begin(). Instead of a call like this:
Code:
Ciao.begin("TARGET 01", 5281);
make a call like this:
Code:
Ciao.begin("arduino1", "TARGET 01", 5281);
and the Arduino will show up on the network as arduino1. As you can see from the Ciao code, the library passes the hostname directly to EthernetBonjour, which is an amazing, magical library that announces the Arduino over Bonjour. EthernetBonjour helps make Ciao possible, so I made a conscious decision to generally get out if its way. I did that by exposing all of the power and functionality that Ciao uses from EthernetBonjour, including the setting the hostname.