{"action":"created","issue":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/2072","repository_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware","labels_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/2072/labels{/name}","comments_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/2072/comments","events_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/2072/events","html_url":"https://github.com/nodemcu/nodemcu-firmware/issues/2072","id":249853420,"number":2072,"title":"MQTT not reaching the broker","user":{"login":"netomarin","id":533148,"avatar_url":"https://avatars2.githubusercontent.com/u/533148?v=4","gravatar_id":"","url":"https://api.github.com/users/netomarin","html_url":"https://github.com/netomarin","followers_url":"https://api.github.com/users/netomarin/followers","following_url":"https://api.github.com/users/netomarin/following{/other_user}","gists_url":"https://api.github.com/users/netomarin/gists{/gist_id}","starred_url":"https://api.github.com/users/netomarin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netomarin/subscriptions","organizations_url":"https://api.github.com/users/netomarin/orgs","repos_url":"https://api.github.com/users/netomarin/repos","events_url":"https://api.github.com/users/netomarin/events{/privacy}","received_events_url":"https://api.github.com/users/netomarin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-08-13T05:25:19Z","updated_at":"2017-11-19T09:18:57Z","closed_at":null,"author_association":"NONE","body":"### Connecting to the broker and be able to send / receive messages\r\n\r\n### The module is not connecting (I've already tested with other devices and the MQTT broker is visible)\r\n\r\n### Test code\r\n```Lua\r\nm=mqtt.Client(node.chipid(), 120)\r\nm:connect(\"192.168.1.43\", 1883, 1, 0, \r\n          function(client) print(\"connected\") end, \r\n          function(client, reason) print(\"failed:\"..reason) end)\r\n```\r\n### NodeMCU version\r\nNodeMCU custom build by frightanic.com\r\n\tbranch: master\r\n\tcommit: b62fae918b3627209fe434950cffb2506cee9a31\r\n\tSSL: true\r\n\tmodules: bit,cron,crypto,encoder,file,gpio,http,i2c,mqtt,net,node,ow,perf,pwm,sjson,spi,struct,tmr,uart,websocket,wifi,tls\r\n build \tbuilt on: 2017-08-13 05:05\r\n powered by Lua 5.1.4 on SDK 2.1.0(116b762)\r\n\r\n### Debug\r\nenter mqtt_socket_client.\r\nNodeMCU_a38932\r\nlength username: 0\r\nlength password: 0\r\nMQTT: Init info: 10717490, , \r\nleave mqtt_socket_client.\r\n> \r\nm:connect(\"192.168.1.43\", 1883, 1, 0, function(client) print(\"connected\") end, function(client, reason) print(\"failed:\"..reason) end)\r\nm:connect(\"192.168.1.43\", 1883, 1, 0, function(client) print(\"connected\") end, function(client, reason) print(\"failed:\"..reason) end)\r\nenter mqtt_socket_connect.\r\nTCP ip is set: 192.168.1.43\r\nTCP port is set: 1883.\r\nenter socket_connect.\r\nleave socket_connect, heap = 38088.\r\nleave mqtt_socket_connect.\r\n> client handshake start.\r\nplease start sntp first !\r\nclient handshake failed!\r\nReason:[-0x7880]\r\nenter mqtt_socket_reconnected.\r\nfailed:-5\r\nenter mqtt_socket_disconnected.\r\nleave mqtt_socket_disconnected.\r\nleave mqtt_socket_reconnected.\r\n\r\n### Hardware\r\nESP 07"},"comment":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/comments/345502930","html_url":"https://github.com/nodemcu/nodemcu-firmware/issues/2072#issuecomment-345502930","issue_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/2072","id":345502930,"user":{"login":"dtran123","id":16594561,"avatar_url":"https://avatars3.githubusercontent.com/u/16594561?v=4","gravatar_id":"","url":"https://api.github.com/users/dtran123","html_url":"https://github.com/dtran123","followers_url":"https://api.github.com/users/dtran123/followers","following_url":"https://api.github.com/users/dtran123/following{/other_user}","gists_url":"https://api.github.com/users/dtran123/gists{/gist_id}","starred_url":"https://api.github.com/users/dtran123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtran123/subscriptions","organizations_url":"https://api.github.com/users/dtran123/orgs","repos_url":"https://api.github.com/users/dtran123/repos","events_url":"https://api.github.com/users/dtran123/events{/privacy}","received_events_url":"https://api.github.com/users/dtran123/received_events","type":"User","site_admin":false},"created_at":"2017-11-19T09:18:57Z","updated_at":"2017-11-19T09:18:57Z","author_association":"NONE","body":"Well the fact that TLS connections worked for cloudmqtt and for my personal mosquitto server configured with self signed certifcations, I am confident that there was probably something wrongly configured for the iot.eclipse.org scenario. But I am finally happy to see that we can get basic secured mqtt connections !"}}
{"actor":{"display_login":"dtran123"}}