Closed shanyulaile closed 7 years ago
Did your app actually connect successfully? Check session.status after
[session connectAndWaitTimeout:300];
You may switch on debug level by changing in MQTTLog.h:
static const DDLogLevel ddLogLevel = DDLogLevelWarning;
to
static const DDLogLevel ddLogLevel = DDLogLevelVerbose;
I wrote it according to your usage, but there is no return value, subscribe to the topic that what is going on. The following code `- (BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictionary )launchOptions {
}
This part which has not been executed
if (error) { NSLog(@"Subscription failed %@", error.localizedDescription); } else { NSLog(@"Subscription sucessfull! Granted Qos: %@", gQoss); } ` thanks