Skip to content

Commit 849b7a5

Browse files
authored
Update README.md
1 parent a1ae6d3 commit 849b7a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Other shields and boards should also work if they provide a [Client](https://www
2828

2929
## Notes
3030

31-
- The maximum size for packets being published and received is set by default to 128 bytes. To change the buffer sizes, you need to use `MQTTClient client(256)` or `MQTTClient client(256, 512)` instead of just `MQTTClient client` at the top of your sketch. A single value denotes both the read and write buffer size, two values specify them separately. **Beginning with version 2.6, the message payload is sent directly during publishing. Therefore, the write buffer is only needed to encode the packet header and topic, for which the default 128 bytes should be enough. However, the receiving of messages is still fully constrained by the read buffer, which may be increased if necessary.**
31+
- The maximum size for packets being published and received is set by default to 128 bytes. To change the buffer sizes, you need to use `MQTTClient client(256)` or `MQTTClient client(256, 512)` instead of just `MQTTClient client` at the top of your sketch. A single value denotes both the read and write buffer size, two values specify them separately. **Beginning with version 2.5.2, the message payload is sent directly during publishing. Therefore, the write buffer is only needed to encode the packet header and topic, for which the default 128 bytes should be enough. However, the receiving of messages is still fully constrained by the read buffer, which may be increased if necessary.**
3232

3333
- On the ESP8266 it has been reported that an additional `delay(10);` after `client.loop();` fixes many stability issues with WiFi connections.
3434

@@ -219,7 +219,7 @@ bool publish(const char topic[], const char payload[], int length);
219219
bool publish(const char topic[], const char payload[], int length, bool retained, int qos);
220220
```
221221

222-
- Beginning with version 2.6, payloads of arbitrary length may be published, see [Notes](#notes).
222+
- Beginning with version 2.5.2, payloads of arbitrary length may be published, see [Notes](#notes).
223223
- The functions return a boolean that indicates if the publishing has been successful (true).
224224

225225
Obtain the last used packet ID and prepare the publication of a duplicate message using the specified packet ID:

0 commit comments

Comments
 (0)