{"action":"created","issue":{"url":"https://api.github.com/repos/randdusing/cordova-plugin-bluetoothle/issues/263","repository_url":"https://api.github.com/repos/randdusing/cordova-plugin-bluetoothle","labels_url":"https://api.github.com/repos/randdusing/cordova-plugin-bluetoothle/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/randdusing/cordova-plugin-bluetoothle/issues/263/comments","events_url":"https://api.github.com/repos/randdusing/cordova-plugin-bluetoothle/issues/263/events","html_url":"https://github.com/randdusing/cordova-plugin-bluetoothle/issues/263","id":145808213,"number":263,"title":"Queue Subscribes","user":{"login":"RangerMauve","id":911495,"avatar_url":"https://avatars.githubusercontent.com/u/911495?v=3","gravatar_id":"","url":"https://api.github.com/users/RangerMauve","html_url":"https://github.com/RangerMauve","followers_url":"https://api.github.com/users/RangerMauve/followers","following_url":"https://api.github.com/users/RangerMauve/following{/other_user}","gists_url":"https://api.github.com/users/RangerMauve/gists{/gist_id}","starred_url":"https://api.github.com/users/RangerMauve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RangerMauve/subscriptions","organizations_url":"https://api.github.com/users/RangerMauve/orgs","repos_url":"https://api.github.com/users/RangerMauve/repos","events_url":"https://api.github.com/users/RangerMauve/events{/privacy}","received_events_url":"https://api.github.com/users/RangerMauve/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/randdusing/cordova-plugin-bluetoothle/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-04T21:20:42Z","updated_at":"2016-04-07T14:06:22Z","closed_at":"2016-04-06T22:38:01Z","body":"I've been using the master branch for connecting to my device, and reading/writing seems to queue up just fine. However, I'm experiencing issues subscribing to a certain notification. Specifically, it errors out [here](https://github.com/randdusing/cordova-plugin-bluetoothle/blob/master/src/android/BluetoothLePlugin.java#L1589) saying that it was \"Unable to write descriptor\". Now, I have all my writes/reads/subscribes happening at almost the same time because this was handled properly [with queuing](https://github.com/don/cordova-plugin-ble-central/blob/master/src/android/BLECentralPlugin.java#L271) in the library I had previously worked with.\r\n\r\nI'm assuming it's an issue with the `subscribe` failing because either one of my reads or writes are happening at the same time it's attempting to write to the descriptor.\r\n\r\nI'm testing this on Android 5.1.1, with cordova platform 5.1.1.\r\n\r\nWould a PR be welcome to add this feature? Are there any workarounds I can take in the meantime? (I'm thinking I'll just add an artificial delay to the subscribe call in the API wrapper I made)"},"comment":{"url":"https://api.github.com/repos/randdusing/cordova-plugin-bluetoothle/issues/comments/206922863","html_url":"https://github.com/randdusing/cordova-plugin-bluetoothle/issues/263#issuecomment-206922863","issue_url":"https://api.github.com/repos/randdusing/cordova-plugin-bluetoothle/issues/263","id":206922863,"user":{"login":"RangerMauve","id":911495,"avatar_url":"https://avatars.githubusercontent.com/u/911495?v=3","gravatar_id":"","url":"https://api.github.com/users/RangerMauve","html_url":"https://github.com/RangerMauve","followers_url":"https://api.github.com/users/RangerMauve/followers","following_url":"https://api.github.com/users/RangerMauve/following{/other_user}","gists_url":"https://api.github.com/users/RangerMauve/gists{/gist_id}","starred_url":"https://api.github.com/users/RangerMauve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RangerMauve/subscriptions","organizations_url":"https://api.github.com/users/RangerMauve/orgs","repos_url":"https://api.github.com/users/RangerMauve/repos","events_url":"https://api.github.com/users/RangerMauve/events{/privacy}","received_events_url":"https://api.github.com/users/RangerMauve/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T14:06:21Z","updated_at":"2016-04-07T14:06:21Z","body":"Bleh, I have to take care of some other things first. Will probably have some time later this afternoon to devote to this again."}}