diff --git a/src/PubSubClient.cpp b/src/PubSubClient.cpp index 2b48d2b6..25e74257 100755 --- a/src/PubSubClient.cpp +++ b/src/PubSubClient.cpp @@ -484,7 +484,7 @@ boolean PubSubClient::publish_P(const char* topic, const uint8_t* payload, unsig unsigned int i; uint8_t header; unsigned int len; - int expectedLength; + unsigned int expectedLength; if (!connected()) { return false;