MQTT-Client-Framework icon indicating copy to clipboard operation
MQTT-Client-Framework copied to clipboard

can we get the List of persisted messages when the broker is disconnected?

Open Mahaswami opened this issue 6 years ago • 0 comments

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]);
                       }
               }];

Mahaswami avatar May 18 '18 11:05 Mahaswami