This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/LAUNCHXL2-RM57L: How to read and save the payload using raw TCP - lwIP

Part Number: LAUNCHXL2-RM57L

Tool/software: Code Composer Studio

Hello,

I used lwip on RM57 launchpad and the demo is working.

Now, I want to use Raw/TCP for receive and send data to another device.

To receive data I´m using this function:
tcp_recv(struct tcp_pcb *pcb, tcp_recv_fn recv)

When the data is received, the struct pbuf has the payload (void *payload).

For example, the other device sent the data, and I know that the data is in a register, because I used the memory browser. For this example, the data is 0x001E :


My question is: How to save this data in a variable?

Any help is welcome.

Thanks