{"action":"created","issue":{"url":"https://api.github.com/repos/256dpi/arduino-mqtt/issues/124","repository_url":"https://api.github.com/repos/256dpi/arduino-mqtt","labels_url":"https://api.github.com/repos/256dpi/arduino-mqtt/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/256dpi/arduino-mqtt/issues/124/comments","events_url":"https://api.github.com/repos/256dpi/arduino-mqtt/issues/124/events","html_url":"https://github.com/256dpi/arduino-mqtt/issues/124","id":363897977,"node_id":"MDU6SXNzdWUzNjM4OTc5Nzc=","number":124,"title":"disconnect() cause Exception (28)","user":{"login":"coelner","id":16364254,"node_id":"MDQ6VXNlcjE2MzY0MjU0","avatar_url":"https://avatars1.githubusercontent.com/u/16364254?v=4","gravatar_id":"","url":"https://api.github.com/users/coelner","html_url":"https://github.com/coelner","followers_url":"https://api.github.com/users/coelner/followers","following_url":"https://api.github.com/users/coelner/following{/other_user}","gists_url":"https://api.github.com/users/coelner/gists{/gist_id}","starred_url":"https://api.github.com/users/coelner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coelner/subscriptions","organizations_url":"https://api.github.com/users/coelner/orgs","repos_url":"https://api.github.com/users/coelner/repos","events_url":"https://api.github.com/users/coelner/events{/privacy}","received_events_url":"https://api.github.com/users/coelner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-26T07:46:23Z","updated_at":"2018-10-02T08:58:14Z","closed_at":"2018-10-02T08:58:14Z","author_association":"NONE","body":"I run the sketch under the latest esp8266 master branch (Latest commit 83a8076 ), but this error occured at least for a month. \r\nThis code snipper cause an exception\r\n```\r\nbool mqtt_disconnect() {\r\n  mqttClient.loop();\r\n  delay(50);\r\n  bool retVal = mqttClient.disconnect();\r\n  delay(10);\r\n#ifdef SERIAL_DEBUG\r\n  if ( retVal ) {\r\n    Serial.println(\"mqtt disconnected\");\r\n  }\r\n  else {\r\n    Serial.println(\"mqtt NOT disconnected\");\r\n  }\r\n#endif\r\n  return retVal;\r\n}\r\n```\r\n\r\n```\r\nException (28):\r\nepc1=0x402064b7 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000064 depc=0x00000000\r\n\r\nctx: cont \r\nsp: 3ffffd20 end: 3fffffc0 offset: 01a0\r\n\r\n\r\nDecoding 13 results\r\n0x40104b6e: ets_timer_setfn at ?? line ?\r\n0x40104d40: ets_timer_arm_new at ?? line ?\r\n0x40208c80: esp_yield at Arduino/hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_main.cpp line 91\r\n0x402025e6: delay at Arduino/hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_wiring.c line 54\r\n0x402064b5: ClientContext::wait_until_sent(int) at Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/WiFiClient.cpp line 196\r\n0x40203ae8: lwmqtt_send_packet_in_buffer at Arduino/libraries/arduino-mqtt/src/lwmqtt/client.c line 186\r\n0x4020651d: WiFiClient::flush(unsigned int) at Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/WiFiClient.cpp line 196\r\n0x40206479: WiFiClient::stop(unsigned int) at Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/WiFiClient.cpp line 196\r\n0x40208f11: MQTTClient::close() at Arduino/libraries/arduino-mqtt/src/MQTTClient.h line 383\r\n0x4020525d: MQTTClient::disconnect() at Arduino/esp8266-test/ota.ino line 66\r\n:  (inlined by) mqtt_disconnect() at Arduino/esp8266-test/mqtt.ino line 76\r\n0x40205880: setup at Arduino/esp8266-test/esp8266-test.ino line 678\r\n0x40208d04: loop_wrapper at Arduino/hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_main.cpp line 122\r\n0x40100739: cont_wrapper at Arduino/hardware/esp8266com/esp8266/cores/esp8266/cont.S line 81\r\n```\r\n\r\nAs soon as I skip the `mqttClient.disconnect()` the sketch runs fine."},"comment":{"url":"https://api.github.com/repos/256dpi/arduino-mqtt/issues/comments/426200309","html_url":"https://github.com/256dpi/arduino-mqtt/issues/124#issuecomment-426200309","issue_url":"https://api.github.com/repos/256dpi/arduino-mqtt/issues/124","id":426200309,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjIwMDMwOQ==","user":{"login":"coelner","id":16364254,"node_id":"MDQ6VXNlcjE2MzY0MjU0","avatar_url":"https://avatars1.githubusercontent.com/u/16364254?v=4","gravatar_id":"","url":"https://api.github.com/users/coelner","html_url":"https://github.com/coelner","followers_url":"https://api.github.com/users/coelner/followers","following_url":"https://api.github.com/users/coelner/following{/other_user}","gists_url":"https://api.github.com/users/coelner/gists{/gist_id}","starred_url":"https://api.github.com/users/coelner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coelner/subscriptions","organizations_url":"https://api.github.com/users/coelner/orgs","repos_url":"https://api.github.com/users/coelner/repos","events_url":"https://api.github.com/users/coelner/events{/privacy}","received_events_url":"https://api.github.com/users/coelner/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T08:58:14Z","updated_at":"2018-10-02T08:58:14Z","author_association":"NONE","body":"reflashed the sketch with the current commit (24a1d22) and it is working flawless so far"}}
{"actor":{"display_login":"coelner"}}