Skip to content

API doesn't return NSAPI_ERROR_UNSUPPORTED on set_blocking(false) #11258

@javiermelendezc

Description

@javiermelendezc

Description

TARGET=CY8CPROTO_062_4343W
TOOLCHAIN=GCC_ARM

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)?

Issue request type

[ ] Question
[ ] Enhancement
[ X] Bug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions