{"action":"created","issue":{"url":"https://api.github.com/repos/gotenna/PublicSDK/issues/31","repository_url":"https://api.github.com/repos/gotenna/PublicSDK","labels_url":"https://api.github.com/repos/gotenna/PublicSDK/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/gotenna/PublicSDK/issues/31/comments","events_url":"https://api.github.com/repos/gotenna/PublicSDK/issues/31/events","html_url":"https://github.com/gotenna/PublicSDK/issues/31","id":272024419,"node_id":"MDU6SXNzdWUyNzIwMjQ0MTk=","number":31,"title":"Mesh bluetooth connection occasionally drops on Android","user":{"login":"benhirashima","id":1156502,"node_id":"MDQ6VXNlcjExNTY1MDI=","avatar_url":"https://avatars2.githubusercontent.com/u/1156502?v=4","gravatar_id":"","url":"https://api.github.com/users/benhirashima","html_url":"https://github.com/benhirashima","followers_url":"https://api.github.com/users/benhirashima/followers","following_url":"https://api.github.com/users/benhirashima/following{/other_user}","gists_url":"https://api.github.com/users/benhirashima/gists{/gist_id}","starred_url":"https://api.github.com/users/benhirashima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benhirashima/subscriptions","organizations_url":"https://api.github.com/users/benhirashima/orgs","repos_url":"https://api.github.com/users/benhirashima/repos","events_url":"https://api.github.com/users/benhirashima/events{/privacy}","received_events_url":"https://api.github.com/users/benhirashima/received_events","type":"User","site_admin":false},"labels":[{"id":349978863,"node_id":"MDU6TGFiZWwzNDk5Nzg4NjM=","url":"https://api.github.com/repos/gotenna/PublicSDK/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-11-07T23:37:55Z","updated_at":"2018-07-12T04:03:07Z","closed_at":null,"author_association":"NONE","body":"I am developing an app using the SDK on Android. My app runs as a foreground service and is designed to send and receive messages on a regular basis. The app can be running for hours at a time. I have noticed that the Bluetooth connection to the Mesh occasionally drops every 0.5 to 1.5 hours. The problem is highly repeatable. I have observed it using three different phones (Galaxy S8 on Android 7.x, Galaxy S6 on Android 7.x and Nexus 5 on Android 6.x) with two different Mesh units. The problem occurs on both the original firmware the Meshes shipped with, and the latest that I installed just yesterday. Some potential sources that I have ruled out:    \r\n\r\n- Mesh battery is not low. I conducted my tests with fully charged Meshes, and their batteries were more than 50% charged when the problems occurred.\r\n- My app is not being killed by the Android system. It continues to run, and I have programmed it to automatically reconnect to the Mesh, which sometimes fails.\r\n- Mesh does not go out of BT range. In my tests, I placed the phone and Mesh on a table 6\" apart and never moved them during the tests.\r\n\r\nI have attached a logcat file that shows one of these disconnection events on the Galaxy S8.\r\n\r\n[gotenna_disco.log](https://github.com/gotenna/PublicSDK/files/1452065/gotenna_disco.log)\r\n\r\nNoteworthy events:\r\n\r\n    12:20:40.119 - My app attempts to send a broadcast message\r\n    12:20:47.220 - My app receives a timeout error code (-109)\r\n    12:21:00.334 - My app attempts to send another broadcast message\r\n    12:21:02.269 - GTEventNotifier: PERIPHERAL WRITE ERROR: ERROR WRITING PACKET - STATUS: 133\r\n    12:21:02.300 - GTEventNotifier: CLOSING BLUETOOTH CONNECTION\r\n    12:21:02.462 - GTEventNotifier: BLUETOOTH DISCONNECTED\r\n    12:21:02.489 - My app receives a signal that the goTenna disconnected\r\n    12:21:02.735 - My app starts scanning for the goTenna\r\n    12:21:27.729 - My app gives up after 25 seconds of scanning without success\r\n\r\nNote that before 12:20:40.119, the app had successfully sent 100+ broadcast messages over a period of about 30 minutes. This log just shows where things started to go sideways."},"comment":{"url":"https://api.github.com/repos/gotenna/PublicSDK/issues/comments/404382473","html_url":"https://github.com/gotenna/PublicSDK/issues/31#issuecomment-404382473","issue_url":"https://api.github.com/repos/gotenna/PublicSDK/issues/31","id":404382473,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDM4MjQ3Mw==","user":{"login":"benhirashima","id":1156502,"node_id":"MDQ6VXNlcjExNTY1MDI=","avatar_url":"https://avatars2.githubusercontent.com/u/1156502?v=4","gravatar_id":"","url":"https://api.github.com/users/benhirashima","html_url":"https://github.com/benhirashima","followers_url":"https://api.github.com/users/benhirashima/followers","following_url":"https://api.github.com/users/benhirashima/following{/other_user}","gists_url":"https://api.github.com/users/benhirashima/gists{/gist_id}","starred_url":"https://api.github.com/users/benhirashima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benhirashima/subscriptions","organizations_url":"https://api.github.com/users/benhirashima/orgs","repos_url":"https://api.github.com/users/benhirashima/repos","events_url":"https://api.github.com/users/benhirashima/events{/privacy}","received_events_url":"https://api.github.com/users/benhirashima/received_events","type":"User","site_admin":false},"created_at":"2018-07-12T04:03:07Z","updated_at":"2018-07-12T04:03:07Z","author_association":"NONE","body":"What's the status on this? It was been **way** too long without a fix. I have suspended development of my app, and will not begin work on an iOS version until this bug is fixed. It is **killing** the user experience. I feel bad that I told people to go buy a goTenna Mesh when it has this fatal flaw. Please tell me all that work I put into my app wasn't for nothing."}}
{"actor":{"display_login":"benhirashima"}}