MQTT-Client-Framework
MQTT-Client-Framework copied to clipboard
can we get the List of persisted messages when the broker is disconnected?
Once the broker disconnects due to some internet connection problem or some other problem, can we get the list of messages that is sent to broker from client when broker is in offline?
MqttClient version 0.13.1. connection constructor
[self.session connectTo:host
port:port
tls:NO
keepalive:60
clean:NO
auth:true
user:username
pass:password
will:NO
willTopic:nil
willMsg:nil
willQos:qos
willRetainFlag:NO
withClientId:uuid
securityPolicy:nil
certificates:nil
protocolLevel:MQTTProtocolVersion311
connectHandler:^(NSError *error) {
if(error){
mqttConnectionCallback(@[[NSNull null], @false]);
} else {
mqttConnectionCallback(@[[NSNull null], @true]);
}
}];