PaulStoffregen / Ethernet

Ethernet library for Teensy (Wiznet W5100 / W5200 / W5500)
http://www.pjrc.com/teensy/td_libs_Ethernet.html
130 stars 83 forks source link

Added functions for setting and getting the hostname. #24

Open m0fa opened 6 years ago

m0fa commented 6 years ago

We, the cod.m GmbH, needed a way to set and get the hostname, as mentioned in #18 . This pull request includes our solution for this. By default the value of the HOST_NAME-define is used. The setHostName-function overrides the hostname. The getHostName-function returns the hostname without the bytes of the mac-address.