AnsweredAssumed Answered

how send NULL string with lwip?

Question asked by kabiri.hamid_reza on Jan 28, 2015
Latest reply on Jan 29, 2015 by kabiri.hamid_reza
i can send string with lwip.
how send NULL string with lwip

 sprintf(BUF,"(%c%c%c%c",len/256,len%256,Cmd/256,Cmd%256);
 strncat(&BUF[5],buf,len);     
 strncat(&BUF[5+len],")",1);
 tcp_write(TcpPCB,BUF,BufLen+6,1);     


if value at location 1 or 3 is 0 tcp_write send 1 or 3 byte 

Outcomes