You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 9, 2020. It is now read-only.
I want to publish data with QOS=1 because my messaging service (RabbitMQ) doesn't support QOS=2. The QOS parameter is not correctly parsed and the QOS is always set to 2 whatever the value put in parameter.
It seems to come from the publish method of Mqtt.m and the conversion of the QOS attribute from Number to MQTTQosLevel. When I add a pre conversion to an unsigned int it works.
I want to publish data with QOS=1 because my messaging service (RabbitMQ) doesn't support QOS=2. The QOS parameter is not correctly parsed and the QOS is always set to 2 whatever the value put in parameter.
It seems to come from the publish method of Mqtt.m and the conversion of the QOS attribute from Number to MQTTQosLevel. When I add a pre conversion to an unsigned int it works.
// Before
[self.manager sendData:data
topic:topic
qos:(MQTTQosLevel)qos
retain:retain];
//[data dataUsingEncoding:NSUTF8StringEncoding]
}
// After
[self.manager sendData:data
topic:topic
qos:(MQTTQosLevel)[qos unsignedIntValue]
retain:retain];
//[data dataUsingEncoding:NSUTF8StringEncoding]
}
Is it possible to re-integrate this fix please?
Thanks
PA