Assign the maximum time interval that is permitted to elapse between two transmissions from the Client.
mqtt_client & keep_alive( uint16_t seconds );
A non-zero value initiates a process of sending a PINGREQ
packet every seconds
. If this function is not invoked,
the Client assumes a Keep Alive
interval of 60 seconds.
Name |
Description |
---|---|
seconds |
Time interval in seconds. |
![]() |
Note |
---|---|
If the Server sends a |
![]() |
Important |
---|---|
This function takes action when the client is in a non-operational state,
meaning the |