Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Embedded_web EmailButton EmailButton HTTPClient_Weather ... more
other drivers
for only W5500 / WIZ550io user, you could use
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.
Diff: WIZnetInterface/Socket/TCPSocketServer.cpp
- Revision:
- 7:7c67a8922ec5
- Parent:
- 3:48348a6eaa72
--- a/WIZnetInterface/Socket/TCPSocketServer.cpp Fri Apr 24 08:19:14 2015 +0000 +++ b/WIZnetInterface/Socket/TCPSocketServer.cpp Sun May 31 10:06:41 2015 +0000 @@ -76,16 +76,21 @@ uint16_t port = eth->sreg<uint16_t>(_sock_fd, Sn_DPORT); // change this server socket to connection socket. connection._sock_fd = _sock_fd; + connection._is_connected = true; connection.set_address(host, port); // and then, for the next connection, server socket should be assigned new one. _sock_fd = -1; // want to assign new available _sock_fd. if(bind(listen_port) < 0) { - error("No more socket for listening"); + // modified by Patrick Pollet + error("No more socket for listening, bind error"); + return -1; } else { //return -1; if(listen(1) < 0) { - error("No more socket for listening"); + // modified by Patrick Pollet + error("No more socket for listening, listen error"); + return -1; } }