diff --git a/src/PubSubClient.cpp b/src/PubSubClient.cpp index 2b48d2b6..d8b69ca6 100755 --- a/src/PubSubClient.cpp +++ b/src/PubSubClient.cpp @@ -456,7 +456,7 @@ boolean PubSubClient::publish(const char* topic, const uint8_t* payload, unsigne length = writeString(topic,this->buffer,length); // Add payload - uint16_t i; + uint32_t i; for (i=0;ibuffer[length++] = payload[i]; }