Beta-test W5100 Bascom-AVR library
Sunday, April 8th, 2012Beta-testing Bascom-AVR W5100 library

The W5100 is the successor of the W3100A. It is an improved chip without shadow registers. This means that less code is required to use the chip. Because the W5100 has different constants than the W3100A, the constants are removed from the Bascom-AVR samples. The constants are automatically created with a value depending on the chip you use.The W5100 library is almost the same as the W3100 library. But there are some differences.- The peersize, peerport and peeraddress have a different order then the W5100. To avoid mistakes, the compiler will create these variables automatic in the proper order.
- When reading UDP, you need to use the UDPREADHEADER statement to read the UDP header. After reading the header, the peersize, peerport and peeraddress variables are set. You then should use the peersize variable to determine the number of bytes to retrieve.
- The W5100 has a command to disconnect the socket in TCP/IP mode. It is named SOCKETDISCONNECT.
- The closesocket statement has been renamed into SOCKETCLOSE. You can use both names.









