Assign a property that will be sent in a CONNECT packet.
template < prop::property_type p > mqtt_client & connect_property( std::integral_constant< prop::property_type, p > prop, prop::value_type_t< p > value );
|
Name |
Description |
|---|---|
|
prop |
The |
|
value |
Value that will be assigned to the property. |
client.connect_property(prop::session_expiry_interval, 40); // ok client.connect_property(prop::reason_string, "reason"); // does not compile, not a CONNECT prop!
See async_mqtt5::connect_props
for all eligible properties.