George Djabarov / Mbed OS mbed-os-example-mesh-minimal
Revision:
116:b2f0131722a0
Parent:
90:0d8804fe2ce2
diff -r 833bb975c5e5 -r b2f0131722a0 mesh_led_control_example.cpp
--- a/mesh_led_control_example.cpp	Mon Dec 03 13:15:10 2018 +0000
+++ b/mesh_led_control_example.cpp	Thu Dec 20 14:30:49 2018 +0000
@@ -185,7 +185,8 @@
 
 static void init_socket()
 {
-    my_socket = new UDPSocket(network_if);
+    my_socket = new UDPSocket();
+    my_socket->open(network_if);
     my_socket->set_blocking(false);
     my_socket->bind(UDP_PORT);
     my_socket->setsockopt(SOCKET_IPPROTO_IPV6, SOCKET_IPV6_MULTICAST_HOPS, &multicast_hops, sizeof(multicast_hops));