Open HeAtNet opened 1 year ago
Memory usage change @ 6ad334a1a14620b964776e5e68a023afc61cbaad
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
arduino:avr:leonardo |
:small_red_triangle: 0 - +1572 | 0.0 - +5.48 | :small_red_triangle: 0 - +28 | 0.0 - +1.09 |
arduino:avr:mega |
:small_red_triangle: 0 - +1574 | 0.0 - +0.62 | :small_red_triangle: 0 - +28 | 0.0 - +0.34 |
arduino:avr:nano |
:small_red_triangle: 0 - +1574 | 0.0 - +5.12 | :small_red_triangle: 0 - +28 | 0.0 - +1.37 |
arduino:megaavr:nona4809 |
:small_red_triangle: 0 - +1573 | 0.0 - +3.2 | :small_red_triangle: 0 - +22 | 0.0 - +0.36 |
arduino:megaavr:uno2018 |
:small_red_triangle: 0 - +1573 | 0.0 - +3.23 | :small_red_triangle: 0 - +22 | 0.0 - +0.36 |
arduino:sam:arduino_due_x_dbg |
:small_red_triangle: 0 - +17232 | 0.0 - +3.29 | N/A | N/A |
arduino:samd:arduino_zero_edbg |
:small_red_triangle: 0 - +15572 | 0.0 - +5.94 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkr1000 |
:small_red_triangle: 0 - +15572 | 0.0 - +5.94 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrfox1200 |
:small_red_triangle: 0 - +15576 | 0.0 - +5.94 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrgsm1400 |
:small_red_triangle: 0 - +15572 | 0.0 - +5.94 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrnb1500 |
:small_red_triangle: 0 - +15572 | 0.0 - +5.94 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrvidor4000 |
:small_red_triangle: 0 - +15572 | 0.0 - +5.94 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrwan1300 |
:small_red_triangle: 0 - +15576 | 0.0 - +5.94 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrwan1310 |
:small_red_triangle: 0 - +15572 | 0.0 - +5.94 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrwifi1010 |
:small_red_triangle: 0 - +15576 | 0.0 - +5.94 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrzero |
:small_red_triangle: 0 - +15572 | 0.0 - +5.94 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:nano_33_iot |
:small_red_triangle: 0 - +15576 | 0.0 - +5.94 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
Memory usage change @ 1f6d782e7ef71641161a9ee8ad8f3f8c6ea47b8d
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
arduino:avr:leonardo |
:small_red_triangle: 0 - +1486 | 0.0 - +5.18 | :small_red_triangle: 0 - +22 | 0.0 - +0.86 |
arduino:avr:mega |
:small_red_triangle: 0 - +1482 | 0.0 - +0.58 | :small_red_triangle: 0 - +22 | 0.0 - +0.27 |
arduino:avr:nano |
:small_red_triangle: 0 - +1486 | 0.0 - +4.84 | :small_red_triangle: 0 - +22 | 0.0 - +1.07 |
arduino:megaavr:nona4809 |
:small_red_triangle: 0 - +1488 | 0.0 - +3.03 | :small_red_triangle: 0 - +22 | 0.0 - +0.36 |
arduino:megaavr:uno2018 |
:small_red_triangle: 0 - +1488 | 0.0 - +3.06 | :small_red_triangle: 0 - +22 | 0.0 - +0.36 |
arduino:sam:arduino_due_x_dbg |
:small_red_triangle: 0 - +17120 | 0.0 - +3.27 | N/A | N/A |
arduino:samd:arduino_zero_edbg |
:small_red_triangle: 0 - +15500 | 0.0 - +5.91 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkr1000 |
:small_red_triangle: 0 - +15508 | 0.0 - +5.92 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrfox1200 |
:small_red_triangle: 0 - +15504 | 0.0 - +5.91 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrgsm1400 |
:small_red_triangle: 0 - +15508 | 0.0 - +5.92 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrnb1500 |
:small_red_triangle: 0 - +15508 | 0.0 - +5.92 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrvidor4000 |
:small_red_triangle: 0 - +15508 | 0.0 - +5.92 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrwan1300 |
:small_red_triangle: 0 - +15504 | 0.0 - +5.91 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrwan1310 |
:small_red_triangle: 0 - +15508 | 0.0 - +5.92 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrwifi1010 |
:small_red_triangle: 0 - +15504 | 0.0 - +5.91 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrzero |
:small_red_triangle: 0 - +15508 | 0.0 - +5.92 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:nano_33_iot |
:small_red_triangle: 0 - +15504 | 0.0 - +5.91 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
Memory usage change @ eb14bb73589d3a09033b23a1d760ef38b1d4f4a4
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
arduino:avr:leonardo |
:grey_question: -86 - +74 | -0.3 - +0.26 | :small_red_triangle: 0 - +16 | 0.0 - +0.62 |
arduino:avr:mega |
:grey_question: -88 - +72 | -0.03 - +0.03 | :small_red_triangle: 0 - +16 | 0.0 - +0.2 |
arduino:avr:nano |
:grey_question: -88 - +72 | -0.29 - +0.23 | :small_red_triangle: 0 - +16 | 0.0 - +0.78 |
arduino:megaavr:nona4809 |
:small_red_triangle: 0 - +105 | 0.0 - +0.21 | :small_red_triangle: 0 - +22 | 0.0 - +0.36 |
arduino:megaavr:uno2018 |
:small_red_triangle: 0 - +105 | 0.0 - +0.22 | :small_red_triangle: 0 - +22 | 0.0 - +0.36 |
arduino:sam:arduino_due_x_dbg |
:small_red_triangle: 0 - +80 | 0.0 - +0.02 | N/A | N/A |
arduino:samd:arduino_zero_edbg |
:small_red_triangle: 0 - +76 | 0.0 - +0.03 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkr1000 |
:small_red_triangle: 0 - +76 | 0.0 - +0.03 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrfox1200 |
:small_red_triangle: 0 - +76 | 0.0 - +0.03 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrgsm1400 |
:small_red_triangle: 0 - +76 | 0.0 - +0.03 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrnb1500 |
:small_red_triangle: 0 - +76 | 0.0 - +0.03 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrvidor4000 |
:small_red_triangle: 0 - +76 | 0.0 - +0.03 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrwan1300 |
:small_red_triangle: 0 - +76 | 0.0 - +0.03 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrwan1310 |
:small_red_triangle: 0 - +76 | 0.0 - +0.03 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrwifi1010 |
:small_red_triangle: 0 - +76 | 0.0 - +0.03 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:mkrzero |
:small_red_triangle: 0 - +76 | 0.0 - +0.03 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
arduino:samd:nano_33_iot |
:small_red_triangle: 0 - +76 | 0.0 - +0.03 | :small_red_triangle: 0 - +28 | 0.0 - +0.09 |
the method name should be setHostname
as in other libraries
https://github.com/JAndrassy/Arduino-Networking-API/blob/main/ArduinoNetAPILibs.md#network-interface-getters-and-setters
I implemented a way to set the hostname manually.
I know, there are two similar PRs on this topic: https://github.com/arduino-libraries/Ethernet/pull/50 https://github.com/arduino/Arduino/pull/5701
These are pretty old requests and I haven't seen any valuable updates in the last few years.
I collected all problems and reviews in the other codes and created a solution that fixes the already-mentioned problems. With this update, you can call
Ethernet.setHostName();
andEthernet.getHostName();
. If you don't call the setter, the automatically generated hostname will be used, like before. If you call the setter with any text, that will be used and the MAC won't be concatenated.I tried to do my best at the implementation and documentation, but please review this request and let me know, if something needs to be changed.