emqx / CocoaMQTT

MQTT 5.0 client library for iOS and macOS written in Swift
https://www.emqx.com/en
Other
1.6k stars 419 forks source link

MqttConnectProperties class properties: need help #526

Closed ruicanas closed 1 year ago

ruicanas commented 1 year ago

Hello community,

I'm having some trouble trying to understand what I should put in the parameters of MqttConnectProperties: requestResponseInformation and requestProblemInfomation. I saw that both properties are UInt8 but I've seen other tools use a boolean for this specific variables. Should I use 0x01 to enable the properties and 0x00 to disable them?

Thanks in advance!

leeway1208 commented 1 year ago

I think you are right. There are some references. https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901053

ruicanas commented 1 year ago

Yap, looks like it. Going to save the page for future questions. Thanks for the quick response!