{"action":"created","issue":{"url":"https://api.github.com/repos/athombv/homey-apps-sdk-issues/issues/11","repository_url":"https://api.github.com/repos/athombv/homey-apps-sdk-issues","labels_url":"https://api.github.com/repos/athombv/homey-apps-sdk-issues/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/athombv/homey-apps-sdk-issues/issues/11/comments","events_url":"https://api.github.com/repos/athombv/homey-apps-sdk-issues/issues/11/events","html_url":"https://github.com/athombv/homey-apps-sdk-issues/issues/11","id":390775855,"node_id":"MDU6SXNzdWUzOTA3NzU4NTU=","number":11,"title":"BLE Characteristic gives an error:  Cannot read property '....' of undefined","user":{"login":"koktaildotcom","id":10741929,"node_id":"MDQ6VXNlcjEwNzQxOTI5","avatar_url":"https://avatars1.githubusercontent.com/u/10741929?v=4","gravatar_id":"","url":"https://api.github.com/users/koktaildotcom","html_url":"https://github.com/koktaildotcom","followers_url":"https://api.github.com/users/koktaildotcom/followers","following_url":"https://api.github.com/users/koktaildotcom/following{/other_user}","gists_url":"https://api.github.com/users/koktaildotcom/gists{/gist_id}","starred_url":"https://api.github.com/users/koktaildotcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koktaildotcom/subscriptions","organizations_url":"https://api.github.com/users/koktaildotcom/orgs","repos_url":"https://api.github.com/users/koktaildotcom/repos","events_url":"https://api.github.com/users/koktaildotcom/events{/privacy}","received_events_url":"https://api.github.com/users/koktaildotcom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-12-13T17:10:54Z","updated_at":"2018-12-15T12:40:53Z","closed_at":null,"author_association":"NONE","body":"I did a rewrite for the app `com.mi.flora` that can read out sensor information from the xiaomi mi flora devices. It all works fine except for the second (and all other) timeout to read sensor information again.\r\n\r\nI've searched for hours through my code but it looks something in core. The second time i want the sensors to read (i've disconnected the BlePeripheral correctly the first time) i cannot call `read` to the `characteristic`. \r\n\r\n```\r\n{ Error: Cannot read property '00001a0000001000800000805f9b34fb' of undefined \r\n   at Object.JSON.parse (/opt/homey-client/system/helpers/jsonfns.js:1:1190) \r\n   at JSON.parse (<anonymous>) \r\n   at jsonToObject (/opt/homey-client/system/helpers/jsonfns.js:1:1083) \r\n   at function.e.data.map.e (/opt/homey-client/system/manager/ManagerApps/bootstrap/sdk/v2/lib/HomeyClient.js:1:1379) \r\n   at Array.map (<anonymous>) \r\n   at HomeyClient._onMessage (/opt/homey-client/system/manager/ManagerApps/bootstrap/sdk/v2/lib/HomeyClient.js:1:1372) \r\n   at emitTwo (events.js:126:13) \r\n   at process.emit (events.js:214:7) \r\n   at emit (internal/child_process.js:762:12) \r\n   at _combinedTickCallback (internal/process/next_tick.js:142:11) \r\n message: 'Cannot read property \\'00001a0000001000800000805f9b34fb\\' of undefined' } \r\nupdate device Philodendron erubescens \r\n(node:30900) UnhandledPromiseRejectionWarning: Error: Error: TypeError: Cannot read property 'read' of undefined \r\n   at /lib/MiFloraDriver.js:335:39 \r\n   at <anonymous> \r\n   at process._tickCallback (internal/process/next_tick.js:189:7)\r\n```"},"comment":{"url":"https://api.github.com/repos/athombv/homey-apps-sdk-issues/issues/comments/447565783","html_url":"https://github.com/athombv/homey-apps-sdk-issues/issues/11#issuecomment-447565783","issue_url":"https://api.github.com/repos/athombv/homey-apps-sdk-issues/issues/11","id":447565783,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzU2NTc4Mw==","user":{"login":"koktaildotcom","id":10741929,"node_id":"MDQ6VXNlcjEwNzQxOTI5","avatar_url":"https://avatars1.githubusercontent.com/u/10741929?v=4","gravatar_id":"","url":"https://api.github.com/users/koktaildotcom","html_url":"https://github.com/koktaildotcom","followers_url":"https://api.github.com/users/koktaildotcom/followers","following_url":"https://api.github.com/users/koktaildotcom/following{/other_user}","gists_url":"https://api.github.com/users/koktaildotcom/gists{/gist_id}","starred_url":"https://api.github.com/users/koktaildotcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koktaildotcom/subscriptions","organizations_url":"https://api.github.com/users/koktaildotcom/orgs","repos_url":"https://api.github.com/users/koktaildotcom/repos","events_url":"https://api.github.com/users/koktaildotcom/events{/privacy}","received_events_url":"https://api.github.com/users/koktaildotcom/received_events","type":"User","site_admin":false},"created_at":"2018-12-15T12:40:53Z","updated_at":"2018-12-15T12:40:53Z","author_association":"NONE","body":"I've tried the branch on rc3 with all devices removed. Thought there could be a difference. But the same error occur."}}
{"actor":{"display_login":"koktaildotcom"}}