Cypress is a leader in providing best-in-class semiconductors and wireless connectivity technologies for the growing Internet of Things (IoT).

NetworkInterface async connection supported on WiFI-BLE Prototyping Board?

15 Aug 2019

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)