{"action":"created","issue":{"url":"https://api.github.com/repos/nkolban/esp32-snippets/issues/389","repository_url":"https://api.github.com/repos/nkolban/esp32-snippets","labels_url":"https://api.github.com/repos/nkolban/esp32-snippets/issues/389/labels{/name}","comments_url":"https://api.github.com/repos/nkolban/esp32-snippets/issues/389/comments","events_url":"https://api.github.com/repos/nkolban/esp32-snippets/issues/389/events","html_url":"https://github.com/nkolban/esp32-snippets/issues/389","id":293906051,"number":389,"title":"How do I dealloc WiFiEventHandler after BootWiFi is completed?","user":{"login":"zachjacobs","id":3695760,"avatar_url":"https://avatars1.githubusercontent.com/u/3695760?v=4","gravatar_id":"","url":"https://api.github.com/users/zachjacobs","html_url":"https://github.com/zachjacobs","followers_url":"https://api.github.com/users/zachjacobs/followers","following_url":"https://api.github.com/users/zachjacobs/following{/other_user}","gists_url":"https://api.github.com/users/zachjacobs/gists{/gist_id}","starred_url":"https://api.github.com/users/zachjacobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachjacobs/subscriptions","organizations_url":"https://api.github.com/users/zachjacobs/orgs","repos_url":"https://api.github.com/users/zachjacobs/repos","events_url":"https://api.github.com/users/zachjacobs/events{/privacy}","received_events_url":"https://api.github.com/users/zachjacobs/received_events","type":"User","site_admin":false},"labels":[{"id":697522254,"url":"https://api.github.com/repos/nkolban/esp32-snippets/labels/waiting","name":"waiting","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-02T14:29:28Z","updated_at":"2018-02-05T15:12:04Z","closed_at":"2018-02-05T15:12:04Z","author_association":"NONE","body":"I have a wrapper class working properly to obtain WiFi credentials and store in NVS.  Once that is finished, I use C to extract credentials from NVS and try to connect to a C based WiFi project.  When I do this, the WiFiEventHandler::getEventHandler() still seems to be called during WiFi events.   I have tried to resolve the issue by deleting the m_pWifiEventHandler pointer in the WiFi class but it still gets called.\r\n\r\nI would like to use my own event handler in C that I have already written and previously used.\r\n`esp_event_loop_init(&app_event_handler, NULL);`\r\n\r\nIs there a preferred method for removing the reference to the old wifi class instance?\r\n"},"comment":{"url":"https://api.github.com/repos/nkolban/esp32-snippets/issues/comments/363113353","html_url":"https://github.com/nkolban/esp32-snippets/issues/389#issuecomment-363113353","issue_url":"https://api.github.com/repos/nkolban/esp32-snippets/issues/389","id":363113353,"user":{"login":"zachjacobs","id":3695760,"avatar_url":"https://avatars1.githubusercontent.com/u/3695760?v=4","gravatar_id":"","url":"https://api.github.com/users/zachjacobs","html_url":"https://github.com/zachjacobs","followers_url":"https://api.github.com/users/zachjacobs/followers","following_url":"https://api.github.com/users/zachjacobs/following{/other_user}","gists_url":"https://api.github.com/users/zachjacobs/gists{/gist_id}","starred_url":"https://api.github.com/users/zachjacobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachjacobs/subscriptions","organizations_url":"https://api.github.com/users/zachjacobs/orgs","repos_url":"https://api.github.com/users/zachjacobs/repos","events_url":"https://api.github.com/users/zachjacobs/events{/privacy}","received_events_url":"https://api.github.com/users/zachjacobs/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T15:12:04Z","updated_at":"2018-02-05T15:12:04Z","author_association":"NONE","body":"I tested f323d99245a68904106f8f9b3abaa29dfbb634ec and it works great in my application!  Thanks for the heads up on `esp_event_loop_set_cb()`.  I didn't run across that before and it makes my life much easier. \r\n\r\nThanks for the quick response!"}}
{"actor":{"display_login":"zachjacobs"}}