Part Number: RM57L843
Tool/software: Code Composer Studio
Hi,
We have created a project in which we have to continuously receive measurement data into PC from controller(RM57L843).
I am using LwIP stack to establish tcpip communication between PC and controller(RM57L843).
I want to send whole structure via tcp but when I pass structure to tcp_write() function it won't work, there are no bytes available in PC for receiving from board.
/* main.c */
struct myStruct
{
int a;
int b;
int c;
};
struct myStruct *testData;
void sendData()
{
testData->a = 50;
testData->b = 60;
testData->c = 70;
tcp_write(stPcb->pcb,(struct myStruct*)testData,sizeof(struct myStruct),TCP_WRITE_FLAG_COPY);
}
tcp_write() is working for string char buffer data but not working for structure data
Will anyone please help me in this?
Please tell me the way what changes to do in main.c file for sending whole structure?
Thanks
Pratik