Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 6 months ago.
mdot library hangs on joinNetwork() fuction.
I have a problem with mDot board hanging on the call to to the joinNetwork() method. I have the following code:
include the mbed library with this snippet
pc.printf("joining network "); if (!dot->getNetworkJoinStatus()) { pc.printf("(network not joined, joining network) "); if ((ret_value = dot->joinNetwork()) != mDot::MDOT_OK) {//Hangs here pc.printf("failed to join network %d:%s\n\r", ret_value, mDot::getReturnCodeString(ret_value).c_str()); while(true){} } else{ pc.printf("network joined successfully\n\r"); } } else{ pc.printf(" Network already joined!\n\r"); }
I have set the configuration into the flash memory using the AT firmware and my connection method is set to AUTO_OTA and the configuration memory seems to be preserved as I can upload the AT firmware back to the device and use it to confirm the configuration. Am I missing something pretty obvious here?