Sending Message to Client not Clearing Buffer
ArtimusDingo opened this issue · 2 comments
I have modified the replytoServer demo as follows but it looks like the previous message is getting sent along with the new message. Is there a way to clear the buffer?
static void replyToServer(void* arg)
{
char strvoltage = readVoltage();
AsyncClient client = reinterpret_cast<AsyncClient*>(arg);
if (client->space() > 32 && client->canSend())
{
char message[32];
strcat(message, "stuff ");
strcat(message, strvoltage);
Serial.println(message);
client->add(message, strlen(message));
client->send();
}
}
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.