{"action":"created","issue":{"url":"https://api.github.com/repos/nkolban/esp32-snippets/issues/676","repository_url":"https://api.github.com/repos/nkolban/esp32-snippets","labels_url":"https://api.github.com/repos/nkolban/esp32-snippets/issues/676/labels{/name}","comments_url":"https://api.github.com/repos/nkolban/esp32-snippets/issues/676/comments","events_url":"https://api.github.com/repos/nkolban/esp32-snippets/issues/676/events","html_url":"https://github.com/nkolban/esp32-snippets/issues/676","id":367999228,"node_id":"MDU6SXNzdWUzNjc5OTkyMjg=","number":676,"title":"Issues with SampleServer_authentication_passkey","user":{"login":"JasXSL","id":6919137,"node_id":"MDQ6VXNlcjY5MTkxMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/6919137?v=4","gravatar_id":"","url":"https://api.github.com/users/JasXSL","html_url":"https://github.com/JasXSL","followers_url":"https://api.github.com/users/JasXSL/followers","following_url":"https://api.github.com/users/JasXSL/following{/other_user}","gists_url":"https://api.github.com/users/JasXSL/gists{/gist_id}","starred_url":"https://api.github.com/users/JasXSL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasXSL/subscriptions","organizations_url":"https://api.github.com/users/JasXSL/orgs","repos_url":"https://api.github.com/users/JasXSL/repos","events_url":"https://api.github.com/users/JasXSL/events{/privacy}","received_events_url":"https://api.github.com/users/JasXSL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-09T00:36:32Z","updated_at":"2018-10-09T00:59:19Z","closed_at":null,"author_association":"NONE","body":"### Issue 1\r\n\r\nThe example is missing onConfirmPIN. I copied it over from another example:\r\n<pre>\r\nbool onConfirmPIN(uint32_t pass_key){\r\n        ESP_LOGI(LOG_TAG, \"The passkey YES/NO number:%d\", pass_key);\r\n\tvTaskDelay(5000);\r\n\treturn true;\r\n}\r\n</pre>\r\n\r\n### Issue 2 \r\n\r\nAfter compiling with the change above it works. But after restarting the ESP and disconnecting my phone bluetooth for a while, it refuses to pair again and I have to manually delete the pairing from my phone and enter the key again.\r\n\r\n### Issue 3\r\n\r\nThe example has the following:\r\n<pre>\r\nuint32_t onPassKeyRequest(){\r\n        ESP_LOGI(LOG_TAG, \"PassKeyRequest\");\r\n\treturn 123456;\r\n}\r\n</pre>\r\n\r\nAm I right in assuming this is meant to allow me to specify my own passkey? This method is never run however, and the code is always randomly generated.\r\n\r\nI modified the example slightly to compile with arduino and a single script. Here's a gist of the complete code I'm using:\r\nhttps://gist.github.com/JasXSL/1dda802a24b4f6cfe742c222e9958142\r\n\r\nI'm compiling with an up to date library from here:\r\nhttps://github.com/espressif/arduino-esp32"},"comment":{"url":"https://api.github.com/repos/nkolban/esp32-snippets/issues/comments/428025148","html_url":"https://github.com/nkolban/esp32-snippets/issues/676#issuecomment-428025148","issue_url":"https://api.github.com/repos/nkolban/esp32-snippets/issues/676","id":428025148,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODAyNTE0OA==","user":{"login":"JasXSL","id":6919137,"node_id":"MDQ6VXNlcjY5MTkxMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/6919137?v=4","gravatar_id":"","url":"https://api.github.com/users/JasXSL","html_url":"https://github.com/JasXSL","followers_url":"https://api.github.com/users/JasXSL/followers","following_url":"https://api.github.com/users/JasXSL/following{/other_user}","gists_url":"https://api.github.com/users/JasXSL/gists{/gist_id}","starred_url":"https://api.github.com/users/JasXSL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasXSL/subscriptions","organizations_url":"https://api.github.com/users/JasXSL/orgs","repos_url":"https://api.github.com/users/JasXSL/repos","events_url":"https://api.github.com/users/JasXSL/events{/privacy}","received_events_url":"https://api.github.com/users/JasXSL/received_events","type":"User","site_admin":false},"created_at":"2018-10-09T00:59:19Z","updated_at":"2018-10-09T00:59:19Z","author_association":"NONE","body":"That clears up 1 & 3. Any idea why #2 might be happening? I don't mind plugging the ESP into my computer and getting the pin for pairing that way, but I'd like the pairing to stick even if the ESP is powered down for a while."}}
{"actor":{"display_login":"JasXSL"}}