This repository was archived by the owner on Apr 24, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -603,6 +603,7 @@ void M2MInterfaceImpl::state_bootstrap_address_resolved( EventData *data)
603
603
}
604
604
address.port = event->_port ;
605
605
address.addr_ptr = (uint8_t *)event->_address ->_address ;
606
+ address.addr_len = event->_address ->_length ;
606
607
_connection_handler->start_listening_for_data ();
607
608
608
609
// Include domain id to be part of endpoint name
@@ -635,9 +636,6 @@ void M2MInterfaceImpl::state_bootstrapped( EventData */*data*/)
635
636
{
636
637
#ifndef MBED_CLIENT_DISABLE_BOOTSTRAP_FEATURE
637
638
tr_debug (" M2MInterfaceImpl::state_bootstrapped" );
638
- _connection_handler->stop_listening ();
639
- _listen_port = rand () % 64511 + 1024 ;
640
- _connection_handler->bind_connection (_listen_port);
641
639
#endif // MBED_CLIENT_DISABLE_BOOTSTRAP_FEATURE
642
640
}
643
641
@@ -819,6 +817,7 @@ void M2MInterfaceImpl::state_coap_data_received( EventData *data)
819
817
}
820
818
address.port = event->_address ->_port ;
821
819
address.addr_ptr = (uint8_t *)event->_address ->_address ;
820
+ address.addr_len = event->_address ->_length ;
822
821
823
822
// Process received data
824
823
internal_event (STATE_PROCESSING_COAP_DATA);
You can’t perform that action at this time.
0 commit comments