From 7f430ce6bd759b0d3835976bde0040529459ada6 Mon Sep 17 00:00:00 2001 From: travis-farmer Date: Sat, 18 Nov 2023 13:10:29 -0500 Subject: [PATCH] current --- Wifi_NINA.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Wifi_NINA.cpp b/Wifi_NINA.cpp index a7c3f9b..52efce1 100644 --- a/Wifi_NINA.cpp +++ b/Wifi_NINA.cpp @@ -249,7 +249,7 @@ void WifiNINA::checkForClientInput() { // read data from client byte cmd[len+1]; for(int i=0; iread(); - cmd[len]=0; + cmd[len]=0x00; CommandDistributor::parse(clientId,cmd,outboundRing); } } @@ -275,6 +275,7 @@ void WifiNINA::checkForClientOutput() { //TJF: the old code had to add a 0x00 byte to the end to terminate the //TJF: c string, before sending it. i take it this is not needed? for (int i=0;iwrite(outboundRing->read()); + //c->write((byte)0x00); } void WifiNINA::loop() {