I have the following code:
EthernetInterface eth;
printf("Network Task Starting in context %p\r\n", Thread::gettid());
printf("Connecting to network\r\n");
int ethStatus = eth.connect();
if(ethStatus != NSAPI_ERROR_OK)
{
printf("Failed to connect, reason:%s(-%04d)\r\n", nsapi_error_to_str(ethStatus), -ethStatus);
}
printf("\r\nThe target IP address is '%s'\r\n", eth.get_ip_address());
When I run this from main(), everything is fine, however when I run this from my task:
Thread threadComm(osPriorityNormal, 65536, NULL, "comm_thread");
threadComm.start(networkTask);
I get "Failed to connect, reason:NO_CONNECTION(-3004)"
This is on mbed-os 5.6 (5f65721), on a NUCLEO-F767ZI
Is this expected?
I have the following code:
When I run this from main(), everything is fine, however when I run this from my task:
I get "Failed to connect, reason:NO_CONNECTION(-3004)"
This is on mbed-os 5.6 (5f65721), on a NUCLEO-F767ZI
Is this expected?