arduino_uip
arduino_uip copied to clipboard
How to get the socket message on a byte array?
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?