No more update~~ please use W5500Interface.
Fork of EthernetInterfaceW5500 by
wrote:
NO more update for this library.
Please move to this page W5500Interface for newer version.
Import libraryW5500Interface
This is the Interface library for WIZnet W5500 chip which forked of EthernetInterfaceW5500, WIZnetInterface and WIZ550ioInterface. This library has simple name as "W5500Interface". and can be used for Wiz550io users also.
This Library for W5500 users. no need to use lwIP(or S/W TCP/IP) Some update & code clean for W5500 only refer from WIZ550ioInterface, WIZnetLibrary and WiflyInterface.
Thanks for ban4jp. This library forks of WIZ550ioInterface.
Diff: Socket/Socket.cpp
- Revision:
- 15:fe68ac753657
- Parent:
- 10:cadac6bcd169
diff -r a089e591e530 -r fe68ac753657 Socket/Socket.cpp --- a/Socket/Socket.cpp Tue Aug 19 23:32:48 2014 +0000 +++ b/Socket/Socket.cpp Fri Aug 29 12:00:38 2014 +0000 @@ -35,8 +35,10 @@ int Socket::close() { // add this code refer from EthernetInterface. + int res; + res = eth->close(_sock_fd); _sock_fd = -1; - return (eth->close(_sock_fd)) ? 0 : -1; + return (res)? 0: -1; } Socket::~Socket()