send via tcp and receive the serial is working as the code below:
bool servidorSocketProtocoloRecebido(TcpClient& cliente, char *protocolo, int tamanho)
{
Serial.print(protocolo);
return true;
}
receive the serial also is working only can not I send via tcp what could be.
void recebeSerial(Stream& stream, char arrivedChar, unsigned short availableCharsCount)
{
tcpServer.writeString("test"); //does not work
Serial.print ("test"); sends to the serial
}
I noticed that in tcpip there is the client as a parameter and if I do
client.sendString ( "test") works now like to put this client within the serial receipt.
thank you