wio:wiopico-io16eth-en
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wio:wiopico-io16eth-en [2025/06/04 07:17] – [Ethernet Library] rjversluis | wio:wiopico-io16eth-en [2025/06/09 09:36] (current) – rjversluis | ||
---|---|---|---|
Line 19: | Line 19: | ||
- | | {{https:// | + | | {{:wio:pico.png? |
- | | W5500-EVB-Pico | + | | Raspberry Pi Pico 1 | W5500 | W5500 |
=====Description===== | =====Description===== | ||
Line 46: | Line 46: | ||
\\ | \\ | ||
=====Wiring===== | =====Wiring===== | ||
- | {{: | + | {{: |
Line 52: | Line 52: | ||
=====Ethernet Library===== | =====Ethernet Library===== | ||
To be able to set the hostname the Ethernet Library must be modified.\\ | To be able to set the hostname the Ethernet Library must be modified.\\ | ||
- | In '' | + | In '' |
<code cpp> | <code cpp> | ||
- | const char* g_DhcpHostName = ""; | + | const char* g_DhcpHostName = ""; |
void DhcpClass:: | void DhcpClass:: | ||
</ | </ | ||
Line 62: | Line 62: | ||
// OPT - host name | // OPT - host name | ||
buffer[16] = hostName; | buffer[16] = hostName; | ||
- | if( strlen( g_DhcpHostName ) > 0 ) { | + | // ***** start NEW code lines |
+ | if( strlen( g_DhcpHostName ) > 0 ) { | ||
buffer[17] = strlen(g_DhcpHostName); | buffer[17] = strlen(g_DhcpHostName); | ||
strcpy((char*)& | strcpy((char*)& | ||
} | } | ||
else { | else { | ||
+ | // ***** end NEW code lines | ||
buffer[17] = strlen(HOST_NAME) + 6; // length of hostname + last 3 bytes of mac address | buffer[17] = strlen(HOST_NAME) + 6; // length of hostname + last 3 bytes of mac address | ||
strcpy((char*)& | strcpy((char*)& | ||
Line 73: | Line 75: | ||
printByte((char*)& | printByte((char*)& | ||
printByte((char*)& | printByte((char*)& | ||
- | } | + | } // ***** NEW code line |
</ | </ | ||
Line 80: | Line 82: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
- | * [[https://docs.wiznet.io/Product/iEthernet/W5500/ | + | * [[https://arduino-pico.readthedocs.io/en/latest/ethernet.html|Pico Ethernet Library]] |
- | * [[https://shop.wiznet.eu/en/ | + | * https://docs.wiznet.io/Product/ |
wio/wiopico-io16eth-en.1749014240.txt.gz · Last modified: 2025/06/04 07:17 by rjversluis