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.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I was trying to do something like this: main(){ network = NetworkInterface::get_default_instance(); network->attach(&status_callback); network->set_blocking(false); /RETURNS NO ERRORS network->connect(); printf("This must get called before the network handler function") } connect() is supposed to be a blocking function unless set_blocking(false). Also set_blocking(false) returns error if asynchronous subscription is not allowed in the device.
set_blocking(false) doesn't return any errors and keeps the synchronous behavior
Am I missing something or it's an error on the API (Eg. set_blocking(false) must return an error)