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.
Diff: mesh_led_control_example.cpp
- Revision:
- 116:b2f0131722a0
- Parent:
- 90:0d8804fe2ce2
--- 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));