MQTT client test with W5200 ethernet shield
Dependents: IBMIoTClientEthernetExample_W5200
Fork of W5500Interface by
Diff: Socket/UDPSocket.cpp
- Revision:
- 5:8aefaef88f79
- Parent:
- 0:e11e8793c3ce
- Child:
- 8:7609a4bd55fd
diff -r af0ed4fbca02 -r 8aefaef88f79 Socket/UDPSocket.cpp --- a/Socket/UDPSocket.cpp Mon Sep 01 01:54:29 2014 +0000 +++ b/Socket/UDPSocket.cpp Fri Sep 26 08:05:41 2014 +0000 @@ -29,7 +29,7 @@ if (_sock_fd < 0) { _sock_fd = eth->new_socket(); } - if (eth->setProtocol(_sock_fd, UDP) == false) return -1; + if (eth->setProtocol(_sock_fd, WIZnet_Chip::UDP) == false) return -1; return 0; } @@ -50,8 +50,8 @@ eth->sreg<uint16_t>(_sock_fd, Sn_PORT, udp_local_port); } // set udp protocol - eth->setProtocol(_sock_fd, UDP); - eth->scmd(_sock_fd, OPEN); + eth->setProtocol(_sock_fd, WIZnet_Chip::UDP); + eth->scmd(_sock_fd, WIZnet_Chip::OPEN); return 0; }