diff --git a/README.md b/README.md index 023e70a..083dce4 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ Other shields and boards should also work if they provide a [Client](https://www - 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.** - On the ESP8266 it has been reported that an additional `delay(10);` after `client.loop();` fixes many stability issues with WiFi connections. +- On the Arduino MKR1400 and NB1500, an additional `delay(50);` after `client.loop();` gives the modem time to proceed and fixes connection issues. - To use the library with shiftr.io, you need to provide the instance name (username) and token secret (password) as the second and third argument to `client.connect(client_id, username, password)`.