Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Fix for IOTCLT-961 #275

Merged
merged 2 commits into from
Aug 23, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions source/m2minterfaceimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ void M2MInterfaceImpl::state_bootstrap_address_resolved( EventData *data)
}
address.port = event->_port;
address.addr_ptr = (uint8_t*)event->_address->_address;
address.addr_len = event->_address->_length;
_connection_handler->start_listening_for_data();

// Include domain id to be part of endpoint name
Expand Down Expand Up @@ -635,9 +636,6 @@ void M2MInterfaceImpl::state_bootstrapped( EventData */*data*/)
{
#ifndef MBED_CLIENT_DISABLE_BOOTSTRAP_FEATURE
tr_debug("M2MInterfaceImpl::state_bootstrapped");
_connection_handler->stop_listening();
_listen_port = rand() % 64511 + 1024;
_connection_handler->bind_connection(_listen_port);
#endif //MBED_CLIENT_DISABLE_BOOTSTRAP_FEATURE
}

Expand Down Expand Up @@ -819,6 +817,7 @@ void M2MInterfaceImpl::state_coap_data_received( EventData *data)
}
address.port = event->_address->_port;
address.addr_ptr = (uint8_t*)event->_address->_address;
address.addr_len = event->_address->_length;

// Process received data
internal_event(STATE_PROCESSING_COAP_DATA);
Expand Down