Files
pubsubclient/_posts/2000-06-06-setKeepAlive.md
2020-05-21 01:17:42 +01:00

518 B

tag, type, name, params, returns
tag type name params returns
api function setKeepAlive
name description type
keepAlive the keep alive interval, in seconds uint16_t
type values
PubSubClient*
value description
PubSubClient* the client instance, allowing the function to be chained

Sets the keep alive interval used by the client. This value should only be changed when the client is not connected.

By default, it is set to 15 seconds - as defined by the MQTT_KEEPALIVE constant in PubSubClient.h.