no upgrade or change at this. move to new Library for WIZ550io, W5500 -> http://mbed.org/teams/EthernetInterfaceW5500-makers/code/W5500Interface/
Dependents: LPC11U68_NTPClient_HelloWorld_WIZ550io
Fork of WIZ550ioInterface by
please get the new Library for WIZ550io, W5500 (WIZnet) http://mbed.org/teams/EthernetInterfaceW5500-makers/code/W5500Interface/
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: Socket/UDPSocket.cpp
- Revision:
- 11:5a5a3f373a6b
- Parent:
- 9:615198a7b82b
diff -r 4da8370d14da -r 5a5a3f373a6b Socket/UDPSocket.cpp --- a/Socket/UDPSocket.cpp Tue Jul 08 01:04:09 2014 +0000 +++ b/Socket/UDPSocket.cpp Tue Jul 08 03:49:33 2014 +0000 @@ -24,12 +24,14 @@ { } +// After init function, bind() should be called. int UDPSocket::init(void) { if (_sock_fd < 0) { _sock_fd = eth->new_socket(); } - eth->setProtocol(_sock_fd, UDP); +// eth->setProtocol(_sock_fd, UDP); + if (eth->setProtocol(_sock_fd, UDP) == false) return -1; return 0; }