Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By DarioG
#87169 In a sketch of arduino thre is example Wifi Telnet To Serial with esp8266 there is a piece of code that is used to receive data from a client:
Code: Select all //check clients for data
 for(i = 0; i < MAX_SRV_CLIENTS; i++){
   if (serverClients[i] && serverClients[i].connected()){
     if(serverClients[i].available()){
    //get data from the telnet client and push it to the UART
     while(serverClients[i].available())
        Serial.write(serverClients[i].read());
   }
  }
 }


This data is sent to the console or the serial port, but I need to capture that data and store it in a byte array:
Code: Select allbyte bufferMSGfromCliente[1024]


Someone can tell me how to do it?