{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/mosquitto.rsmb/issues/26","repository_url":"https://api.github.com/repos/eclipse/mosquitto.rsmb","labels_url":"https://api.github.com/repos/eclipse/mosquitto.rsmb/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/mosquitto.rsmb/issues/26/comments","events_url":"https://api.github.com/repos/eclipse/mosquitto.rsmb/issues/26/events","html_url":"https://github.com/eclipse/mosquitto.rsmb/issues/26","id":165380272,"number":26,"title":"Will messages of MQTT-SN clients not published","user":{"login":"gazally","id":16470252,"avatar_url":"https://avatars.githubusercontent.com/u/16470252?v=3","gravatar_id":"","url":"https://api.github.com/users/gazally","html_url":"https://github.com/gazally","followers_url":"https://api.github.com/users/gazally/followers","following_url":"https://api.github.com/users/gazally/following{/other_user}","gists_url":"https://api.github.com/users/gazally/gists{/gist_id}","starred_url":"https://api.github.com/users/gazally/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gazally/subscriptions","organizations_url":"https://api.github.com/users/gazally/orgs","repos_url":"https://api.github.com/users/gazally/repos","events_url":"https://api.github.com/users/gazally/events{/privacy}","received_events_url":"https://api.github.com/users/gazally/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-13T17:44:55Z","updated_at":"2016-09-02T05:14:53Z","closed_at":null,"body":"I noticed my MQTT clients' wills were getting published but not MQTT-SN clients. Upon some investigation into the code I found `MQTTProtocol_keepalive` in MQTTProtocolClient.c which is responsible for closing timed out client sessions with the `send_will` flag set. It iterates through `bstate->clients` and checks whether `client->protocol == PROTOCOL_MQTTS`. However that is always going to be false because the MQTT-SN clients are not in `bstate->clients`, they are in `bstate->mqtts_clients`. \r\n"},"comment":{"url":"https://api.github.com/repos/eclipse/mosquitto.rsmb/issues/comments/244285073","html_url":"https://github.com/eclipse/mosquitto.rsmb/issues/26#issuecomment-244285073","issue_url":"https://api.github.com/repos/eclipse/mosquitto.rsmb/issues/26","id":244285073,"user":{"login":"aignacio","id":5991372,"avatar_url":"https://avatars.githubusercontent.com/u/5991372?v=3","gravatar_id":"","url":"https://api.github.com/users/aignacio","html_url":"https://github.com/aignacio","followers_url":"https://api.github.com/users/aignacio/followers","following_url":"https://api.github.com/users/aignacio/following{/other_user}","gists_url":"https://api.github.com/users/aignacio/gists{/gist_id}","starred_url":"https://api.github.com/users/aignacio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aignacio/subscriptions","organizations_url":"https://api.github.com/users/aignacio/orgs","repos_url":"https://api.github.com/users/aignacio/repos","events_url":"https://api.github.com/users/aignacio/events{/privacy}","received_events_url":"https://api.github.com/users/aignacio/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T05:14:53Z","updated_at":"2016-09-02T05:14:53Z","body":"up!"}}
{"actor":{"display_login":"aignacio"}}