W5500 from SeeedStudio on NUCLEO-L476RG
Dependents: coap-example Borsch coap-example
Fork of W5500Interface by
Diff: WIZnet/W5500.cpp
- Revision:
- 4:80e302a610fd
- Parent:
- 3:61ff27ed8355
--- a/WIZnet/W5500.cpp Wed Jul 05 18:37:40 2017 +0000 +++ b/WIZnet/W5500.cpp Thu Jul 06 04:51:34 2017 +0000 @@ -170,6 +170,14 @@ return true; } +bool WIZnet_Chip::is_closed(int socket) +{ + if (sreg<uint8_t>(socket, Sn_SR) == SOCK_CLOSED) { + return true; + } + return false; +} + int WIZnet_Chip::wait_readable(int socket, int wait_time_ms, int req_size) { if (socket < 0) {