You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to implement the async API of Network Interface on the CY8CPROTO_062_4343W.
network = NetworkInterface::get_default_instance();
network->attach(&status_callback);
nsapi_error_t error = network->set_blocking(false);
switch (error)
{
case NSAPI_ERROR_OK:
printf("No Errors\r\n");
break;
case NSAPI_ERROR_UNSUPPORTED:
printf("Not supported\r\n");
break;
}
network->connect();
printf("This should be printed before any connection callbacks\r\n");
The asynchronous mode is never activated and it keeps handling connect() as a blocking function. Also, set_blocking(false) returns NSAPI_ERROR_OK.
Is this an error on the Cypress driver where NSAPI_ERROR_UNSUPPORTED should be returned from set_blocking(false)?