File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 23
23
#include "include/nd_tasklet.h"
24
24
#include "include/mesh_system.h"
25
25
#include "ns_event_loop.h"
26
+ #include "multicast_api.h"
26
27
27
28
// For tracing we need to define flag, have include and define group
28
29
#define HAVE_DEBUG 1
@@ -265,6 +266,13 @@ void nd_tasklet_configure_and_connect_to_network(void)
265
266
tasklet_data_ptr -> network_interface_id ,
266
267
MBED_CONF_MBED_MESH_API_6LOWPAN_ND_PANID_FILTER );
267
268
269
+ // Enable MPL by default
270
+ const uint8_t all_mpl_forwarders [16 ] = {0xff , 0x03 , [15 ]= 0xfc };
271
+ multicast_mpl_domain_subscribe (tasklet_data_ptr -> network_interface_id ,
272
+ all_mpl_forwarders ,
273
+ MULTICAST_MPL_SEED_ID_DEFAULT ,
274
+ NULL );
275
+
268
276
status = arm_nwk_interface_up (tasklet_data_ptr -> network_interface_id );
269
277
if (status >= 0 ) {
270
278
tasklet_data_ptr -> tasklet_state = TASKLET_STATE_BOOTSTRAP_STARTED ;
You can’t perform that action at this time.
0 commit comments