![]() |
Home | Libraries | People | FAQ | More |
Assign a property that will be sent in a CONNECT
packet.
template< prop::property_type p>boost::mqtt5::mqtt_client
& connect_property( std::integral_constant< prop::property_type, p > prop,boost::mqtt5::prop::value_type_t
< p > value);
Name |
Description |
---|---|
|
The |
|
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 boost::mqtt5::connect_props
for all eligible properties.