ntruchsess / arduino_uip

UIPEthernet: A plugin-replacement of the stock Arduino Ethernet library for ENC28J60 shields and breakout boards. Full support for persistent (streaming) TCP-connections and UDP (Client and Server each), ARP, ICMP, DHCP and DNS. Build around Adam Dunkels uIP Stack. Further developed version can be found on https://github.com/UIPEthernet/UIPEthernet
489 stars 211 forks source link

added ability to set/get hostname #170

Open mykh opened 7 years ago

mykh commented 7 years ago

I've created overloaded Ethernet.begin() function that supports a host name parameter which is used by the DHCP request. Also added Ethernet.hostname() function which returns a hostname or an empty string if a board was configured with static IP. A simple example is located in the ./examples/DhcpHostname directory.