{"action":"created","issue":{"url":"https://api.github.com/repos/ejvr/qmqtt2qml/issues/1","repository_url":"https://api.github.com/repos/ejvr/qmqtt2qml","labels_url":"https://api.github.com/repos/ejvr/qmqtt2qml/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ejvr/qmqtt2qml/issues/1/comments","events_url":"https://api.github.com/repos/ejvr/qmqtt2qml/issues/1/events","html_url":"https://github.com/ejvr/qmqtt2qml/issues/1","id":319713802,"number":1,"title":"I cannot keep up the connection up","user":{"login":"Sefriol","id":6150958,"avatar_url":"https://avatars0.githubusercontent.com/u/6150958?v=4","gravatar_id":"","url":"https://api.github.com/users/Sefriol","html_url":"https://github.com/Sefriol","followers_url":"https://api.github.com/users/Sefriol/followers","following_url":"https://api.github.com/users/Sefriol/following{/other_user}","gists_url":"https://api.github.com/users/Sefriol/gists{/gist_id}","starred_url":"https://api.github.com/users/Sefriol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sefriol/subscriptions","organizations_url":"https://api.github.com/users/Sefriol/orgs","repos_url":"https://api.github.com/users/Sefriol/repos","events_url":"https://api.github.com/users/Sefriol/events{/privacy}","received_events_url":"https://api.github.com/users/Sefriol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-02T21:11:27Z","updated_at":"2018-05-03T20:05:01Z","closed_at":null,"author_association":"NONE","body":"I tested the connection with http://test.mosquitto.org/, it worked well. Then I started to test with the real API and I'm able to connect to the server, but when I'm subscribing, the server just closes the connection immediately.\r\n\r\nI tried the same address with MQTT.JS, and it works. I checked with Wireshark, and topic string is exactly the same, but I'm wondering if I'm missing some configuration parameters for the client.\r\n\r\n[API that I'm using](https://digitransit.fi/en/developers/apis/4-realtime-api/vehicle-positions/)\r\n"},"comment":{"url":"https://api.github.com/repos/ejvr/qmqtt2qml/issues/comments/386419403","html_url":"https://github.com/ejvr/qmqtt2qml/issues/1#issuecomment-386419403","issue_url":"https://api.github.com/repos/ejvr/qmqtt2qml/issues/1","id":386419403,"user":{"login":"ejvr","id":18499109,"avatar_url":"https://avatars1.githubusercontent.com/u/18499109?v=4","gravatar_id":"","url":"https://api.github.com/users/ejvr","html_url":"https://github.com/ejvr","followers_url":"https://api.github.com/users/ejvr/followers","following_url":"https://api.github.com/users/ejvr/following{/other_user}","gists_url":"https://api.github.com/users/ejvr/gists{/gist_id}","starred_url":"https://api.github.com/users/ejvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejvr/subscriptions","organizations_url":"https://api.github.com/users/ejvr/orgs","repos_url":"https://api.github.com/users/ejvr/repos","events_url":"https://api.github.com/users/ejvr/events{/privacy}","received_events_url":"https://api.github.com/users/ejvr/received_events","type":"User","site_admin":false},"created_at":"2018-05-03T20:05:01Z","updated_at":"2018-05-03T20:05:01Z","author_association":"OWNER","body":"The problem is that the broker you are connecting to appears to insist on setting the _clean session_ flag. I don't know if this is a requirement in the MQTT standard or  quirk of the broker.\r\n\r\nYou can set this on the MQTT::Client instance using `m_client->setCleanSession(true)` in the C++ code.\r\n"}}
{"actor":{"display_login":"ejvr"}}