Open ackratos opened 4 years ago
Yes, the comment is out-of-date:
should read:
[session connectWithConnectHandler:^(NSError *error) {
if (error) {
NSLog(@"Error Connect %@", error.localizedDescription);
} else {
NSLog(@"Connected sessionPresent:%d", self.sessionPresent);
}
}];
The comment says
MQTTConnectHandler
has a parametersessionPresent
https://github.com/novastone-media/MQTT-Client-Framework/blob/7c5e329f5a916595d3064e2e0aea7b3597d4a4a8/MQTTClient/MQTTClient/MQTTSession.h#L498-L525
But the definition of
MQTTConnectHandler
doesn't have that parameter. Is the comment out-of-date? https://github.com/novastone-media/MQTT-Client-Framework/blob/7c5e329f5a916595d3064e2e0aea7b3597d4a4a8/MQTTClient/MQTTClient/MQTTSession.h#L274