Skip to content

Commit 2ca152c

Browse files
authored
Update mqtt-client2.ino
1 parent 66c3baa commit 2ca152c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mqtt-client2.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ void setup() {
6565
}
6666

6767
void loop() {
68-
char fakeData[100];
68+
//If you need to increase buffer size, you need to change MQTT_MAX_PACKET_SIZE in PubSubClient.h
69+
char fakeData[128];
6970
//choose your own number of variables and data types, but avoid data buffer size overload
7071
float var1 = random(55,77); //fake number range, adjust as you like
7172
float var2 = random(77,99);

0 commit comments

Comments
 (0)