Keepalive cannot be set after connect (e.g. in the on_connect callback). In MQTTv5 the server can answer the connect with a property of the maximum keep alive that it accepts. I would want to lower the keep alive in on_connect to this value if necessary, but it is not possible anymore after the socket is open.
Also, wouldn't it make sense for the base client to deal with all the v5 properties (keepalive, max_packet_size, etc.) the server can send and set the client values accordingly?
Keepalive cannot be set after connect (e.g. in the on_connect callback). In MQTTv5 the server can answer the connect with a property of the maximum keep alive that it accepts. I would want to lower the keep alive in on_connect to this value if necessary, but it is not possible anymore after the socket is open.
Also, wouldn't it make sense for the base client to deal with all the v5 properties (keepalive, max_packet_size, etc.) the server can send and set the client values accordingly?