I downloaded the cvs version of Player to send opaque requests.
When SendReq() is invoked, the console 'tells me' the following:
segmentation fault (core dumped)
I observed that opaque interface has changed. Now data field is a pointer, not an array.
I suppose that you pass to this field the address of your data. here is my code:
uint8_t* buffer = new uint8_t;
memcpy(buffer,data,data_len); // copy data into the buffer
req.data = buffer;
req.data_count = data_len;
The driver receives the request correctly and then send the reply to the client.
I think the client crashes when it receives the reply.
Can anyone help me?
Thanks in advance.