arduino_uip icon indicating copy to clipboard operation
arduino_uip copied to clipboard

How to get the socket message on a byte array?

Open l-sannin opened this issue 8 years ago • 0 comments

Hello I'm taking this from the TCP echo example, but i cant retrive the socket data as byte array to process it This line; Serial1.write(msg,size) returns ok data in example if I send FF return FF, the issue are reading the buffer msg, whith this

for(i=0;i<size;i++){
 Serial1.print(*(msg + i));
}

Send via serial 3 bytes 2,5,5 Please a little help or the library has an method to obtain the message as bytes?

l-sannin avatar Nov 23 '15 19:11 l-sannin