611 B
611 B
tag, type, name, params, returns
| tag | type | name | params | returns | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| api | function | setSocketTimeout |
|
|
Sets the socket timeout used by the client. This determines how long the client will wait for incoming data when it expects data to arrive - for example, whilst it is in the middle of reading an MQTT packet.
By default, it is set to 15 seconds - as defined by the MQTT_SOCKET_TIMEOUT
constant in PubSubClient.h.