Hi,
I am using libcsp in the connectionless socket mode.
I am able to successfully send the packet using 'csp_sendto'
Problem is in the receive code,
when i try the following sequence, the function 'csp_recvfrom' does not receive data.
csp_read_socket = csp_socket(CSP_SO_CONN_LESS);
if ( csp_read_socket == NULL)
{
csp_log_error ("Client read task: failed to create socket");
return;
}//if read socket is null
csp_bind(csp_read_socket,CSP_ANY);
csp_sleep_ms(1000);
csp_packet_t *packet = csp_recvfrom (csp_read_socket,CSP_MAX_TIMEOUT);
Does anyone know, how to read using CSP over a connectionless socket?
Regards
Vanat