{"action":"opened","issue":{"url":"https://api.github.com/repos/flightonary/Moscapsule/issues/31","repository_url":"https://api.github.com/repos/flightonary/Moscapsule","labels_url":"https://api.github.com/repos/flightonary/Moscapsule/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/flightonary/Moscapsule/issues/31/comments","events_url":"https://api.github.com/repos/flightonary/Moscapsule/issues/31/events","html_url":"https://github.com/flightonary/Moscapsule/issues/31","id":150245526,"number":31,"title":"How to receive mqttMessage in mqttConfig.onMessageCallback","user":{"login":"kelly08385","id":8035344,"avatar_url":"https://avatars.githubusercontent.com/u/8035344?v=3","gravatar_id":"","url":"https://api.github.com/users/kelly08385","html_url":"https://github.com/kelly08385","followers_url":"https://api.github.com/users/kelly08385/followers","following_url":"https://api.github.com/users/kelly08385/following{/other_user}","gists_url":"https://api.github.com/users/kelly08385/gists{/gist_id}","starred_url":"https://api.github.com/users/kelly08385/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelly08385/subscriptions","organizations_url":"https://api.github.com/users/kelly08385/orgs","repos_url":"https://api.github.com/users/kelly08385/repos","events_url":"https://api.github.com/users/kelly08385/events{/privacy}","received_events_url":"https://api.github.com/users/kelly08385/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-22T02:21:39Z","updated_at":"2016-04-22T02:21:39Z","closed_at":null,"body":"My program can do PUBLISH, PUBRIC, PUBERL, PUBCOMP now\r\nThe message print in Log is show below\r\n\r\nMyProgram[5194:1180483] [MOSQUITTO] DEBUG   Client cid received PUBLISH (d0, q2, r0, m8, 'Test/6', ... (145 bytes))\r\n2016-04-22 09:42:55.109 MyProgram[5194:1180483] [MOSQUITTO] DEBUG   Client cid sending PUBREC (Mid: 8)\r\n2016-04-22 09:42:55.117 MyProgram[5194:1180483] [MOSQUITTO] DEBUG   Client cid received PUBREL (Mid: 8)\r\n2016-04-22 09:42:55.117 MyProgram[5194:1180483] [MOSQUITTO] DEBUG   Client cid sending PUBCOMP (Mid: 8)\r\n2016-04-22 09:43:25.627\r\n\r\nBut my program never do this block\r\nself.mqttConfig.onMessageCallback = { mqttMessage in\r\n     NSLog(“MQTT Message received: payload=\\(mqttMessage.payloadString)\")\r\n }\r\nSo I can’t get the mqttMessage.\r\n\r\nHow to receive mqttMessage?\r\n\r\nThank you!\r\n\r\nps. Sorry for my poor English. If you have any question, please tell me.\r\n\r\nMy question is similar to this website.\r\nhttp://stackoverflow.com/questions/36289214/how-to-receive-message-of-subscribed-topic-with-moscapsule"}}