{"action":"closed","issue":{"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/808","repository_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota","labels_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/808/labels{/name}","comments_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/808/comments","events_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/808/events","html_url":"https://github.com/arendst/Sonoff-Tasmota/issues/808","id":253364983,"number":808,"title":"If MQTT SSL is used there is a stop required after fingerprint test","user":{"login":"stefanbode","id":16225290,"avatar_url":"https://avatars2.githubusercontent.com/u/16225290?v=4","gravatar_id":"","url":"https://api.github.com/users/stefanbode","html_url":"https://github.com/stefanbode","followers_url":"https://api.github.com/users/stefanbode/followers","following_url":"https://api.github.com/users/stefanbode/following{/other_user}","gists_url":"https://api.github.com/users/stefanbode/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanbode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanbode/subscriptions","organizations_url":"https://api.github.com/users/stefanbode/orgs","repos_url":"https://api.github.com/users/stefanbode/repos","events_url":"https://api.github.com/users/stefanbode/events{/privacy}","received_events_url":"https://api.github.com/users/stefanbode/received_events","type":"User","site_admin":false},"labels":[{"id":911035386,"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/labels/stale","name":"stale","color":"ffffff","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-08-28T15:23:49Z","updated_at":"2018-05-07T19:12:11Z","closed_at":"2018-05-07T19:12:11Z","author_association":"NONE","body":"Please insert in sonoff.ino after line 637 a stop() of the espclient. Otherwise the next mqtt.connect causes the second open connection creating interferences. The first socket will close after a while but MQTT needs at least one reconnect to overcome the problem. The connection is smooth and reliable it the client is stopped after the verify.\r\n+ line 637 sonoff.ino espClient.stop();\r\n\r\n```\r\n    if (espClient.verify(sysCfg.mqtt_fingerprint, sysCfg.mqtt_host)) {\r\n      addLog_P(LOG_LEVEL_INFO, PSTR(\"MQTT: Verified\"));\r\n    } else {\r\n      addLog_P(LOG_LEVEL_DEBUG, PSTR(\"MQTT: Insecure connection due to invalid Fingerprint\"));\r\n    }\r\n    espClient.stop();\r\n    yield();\r\n#endif  // USE_MQTT_TLS\r\n```"}}
{"actor":{"display_login":"stale"}}