ckrey / MQTTChat

Demonstration iOS App for MQTT-Client-Framework
Eclipse Public License 1.0
96 stars 30 forks source link

Help please #4

Closed wutingyu closed 8 years ago

wutingyu commented 8 years ago

hey ckrey Sorry,myEnglish is awful! please help! When I connect to host or resovle message, I should use MqttSession or MqttSessionManager? I find they may have the same function! Choose one of them? Could you tell me what's the difference between them two?

ckrey commented 8 years ago

MQTTSessionManager deals with re-connects and re-subscribes and the automatic closing / opening of sessions when the app goes to background / is reactivated.

MQTTSessionManager uses MQTTSession.

For a simple application, you may use MQTTSessionManager or subclass it. If you want to have full control, use MQTTSession.

ckrey commented 8 years ago

Please put further questions / issues to https://github.com/ckrey/MQTT-Client-Framework

MQTTChat is just a simple demo app