I tried to convert the LEDClient example project to send data to my server. But the problem I have is that I can't send more than 4 bytes.
Here's my code
case TCP_STATE_CONNECT: if (tcp_check_send (socket_tcp) == __TRUE) { //normal //sendbuf = tcp_get_buf(SENDLEN); //sendbuf[0] = BLINKLED; //sendbuf[1] = p2; //tcp_send (socket_tcp, sendbuf, SENDLEN); //changed code sendbuf = tcp_get_buf(7); sendbuf[0]=1; sendbuf[1]=20; sendbuf[2]=111; sendbuf[3]=213; sendbuf[4]=0; sendbuf[5]=88; sendbuf[6]=99; tcp_send (socket_tcp, sendbuf, 7);
Don't know why it will not send more than 4 bytes. Anyone who does know???
If this works, then I can adopt this project to work with my RTX Kernel...
Hello, the connecting is ok. The LEDClient is working fine, when I change the remote IP adres for my board to the one of my pc. I can see everything coming in ok.
The problem is that I don't know if my setup of processes is ok. I don't know if the callback function should be a process on it's own or not... Now my problem is that it is never being called. I even don't know if my socket is ok. I can work with my socket and try to make a connection trough it. Then the socket is in the TCP_STATE_SYN_SENT state. But the problem is that I can't see anything on my network coming from the IP address of my board when I snif it...
How can this be?
I use the Net_Config.c file from the LEDClient and the LPC2300_RTX.s startup file from the HTTP example. Also tried other startup files, but that didn't mather...
Any ideas?