Meaning of esp_mqtt_client_config_t.refrech_connection_after_ms
Posted: Mon Apr 01, 2019 1:55 pm
Hi All,
I'm working on a mqtt project where I need to know if the client connection to the broker is still active. If the connection is disconnected, the system must asap come to halt.
The first idea was to set a relative low keepalive value and let the client send periodically some dummy publishings.
But looking into the documentation, I discovered the "refresh_connection_after_ms" member of esp_mqtt_client_config_t.
What is the purpose of this member? Can I use it to chech/ensure the connection between the client(s) and the broker?
Thanks,
Paul
I'm working on a mqtt project where I need to know if the client connection to the broker is still active. If the connection is disconnected, the system must asap come to halt.
The first idea was to set a relative low keepalive value and let the client send periodically some dummy publishings.
But looking into the documentation, I discovered the "refresh_connection_after_ms" member of esp_mqtt_client_config_t.
What is the purpose of this member? Can I use it to chech/ensure the connection between the client(s) and the broker?
Thanks,
Paul