diff --git a/src/ThingSpeak.h b/src/ThingSpeak.h index 9c744c6..eafb7fe 100644 --- a/src/ThingSpeak.h +++ b/src/ThingSpeak.h @@ -1556,7 +1556,7 @@ class ThingSpeakClass // make sure all of the HTTP request is pushed out of the buffer before looking for a response this->client->flush(); - long timeoutTime = millis() + TIMEOUT_MS_SERVERRESPONSE; + unsigned long timeoutTime = millis() + TIMEOUT_MS_SERVERRESPONSE; while(this->client-> available() < 17){ delay(2);