Skip to content

Commit 6b5429d

Browse files
aentingermattiabertorello
authored andcommitted
Renaming method 'poll' to 'encode' in order to be consistent with the naming within ArduinoCloudThing
1 parent f1adabf commit 6b5429d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ArduinoIoTCloud.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ void ArduinoIoTCloudClass::update(int const reconnectionMaxRetries, int const re
150150
_mqttClient.loop();
151151

152152
uint8_t data[MQTT_BUFFER_SIZE];
153-
int const length = Thing.poll(data, sizeof(data));
153+
int const length = Thing.encode(data, sizeof(data));
154154
if (length > 0) {
155155
writeProperties(data, length);
156156
}

0 commit comments

Comments
 (0)