{"action":"created","issue":{"url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/493","repository_url":"https://api.github.com/repos/don/cordova-plugin-ble-central","labels_url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/493/labels{/name}","comments_url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/493/comments","events_url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/493/events","html_url":"https://github.com/don/cordova-plugin-ble-central/issues/493","id":274686281,"number":493,"title":"ble.writeWithoutResponse not working on ios 11.0.1 please help","user":{"login":"aaviles24","id":13629859,"avatar_url":"https://avatars1.githubusercontent.com/u/13629859?v=4","gravatar_id":"","url":"https://api.github.com/users/aaviles24","html_url":"https://github.com/aaviles24","followers_url":"https://api.github.com/users/aaviles24/followers","following_url":"https://api.github.com/users/aaviles24/following{/other_user}","gists_url":"https://api.github.com/users/aaviles24/gists{/gist_id}","starred_url":"https://api.github.com/users/aaviles24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaviles24/subscriptions","organizations_url":"https://api.github.com/users/aaviles24/orgs","repos_url":"https://api.github.com/users/aaviles24/repos","events_url":"https://api.github.com/users/aaviles24/events{/privacy}","received_events_url":"https://api.github.com/users/aaviles24/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-11-16T22:27:12Z","updated_at":"2018-04-29T08:14:37Z","closed_at":null,"author_association":"NONE","body":"My code works fine on Android but then when I try it on ios 11.0.1 it does not work.\r\nI hard coded UUID just to simplify my post but I do use ble.startScan to retrieve UUID and I am able to connect and start notification on another characteristic just fine. It is only when I go to writeWithoutResponse that it shows a successful write but nothing is received by the device.\r\n\r\nI have also verified using apps Dialog DSPS and Blue Gecko to verify that writeWithoutResponse works with the UUID's below.\r\n\r\nI have included below my code and console outputs in xcode showing that the serialPortCharacter2UUID does have the writeWithoutResponse property.\r\n\r\nI am not sure what else to try at this point is this a known issue. Please help.\r\n\r\nvar devUUID = \"B6EDADC8-4244-0753-766B-08CFB6EEA058\";\r\nvar serviceUUID   = \"0783B03E-8535-B5A0-7140-A304D2495CB7\";\r\nvar serialPortCharacter2UUID = \"0783B03E-8535-B5A0-7140-A304D2495CBA\";\r\n\r\n\r\nvar timeResponse = \"1510870330\\r\";\r\nvar array = new Uint8Array(timeResponse.length);\r\nfor (var i = 0, l = timeResponse.length; i < l; i++) {\r\n    array[i] = timeResponse.charCodeAt(i);\r\n}\r\nvar finalArr = window.btoa(String.fromCharCode.apply(null, array));\r\n\r\nvar success = function(){\r\n console.log(\"Successfully executed writeWithoutResponse\");\r\n}\r\n\r\nvar failure= function(){\r\n console.log(\"Failed to execute writeWithoutResponse\");\r\n}\r\n\r\nble.writeWithoutResponse(app.device,serviceUUID, serialPortCharacter2UUID, finalArr, success, failure);\r\n\r\n\r\n\r\n\r\n\r\n\r\n2017-11-16 16:33:08.711257-0500 Scarab[1029:889444] Discovered {\r\n    advertising =     {\r\n        kCBAdvDataIsConnectable = 1;\r\n        kCBAdvDataLocalName = SCARAB;\r\n        kCBAdvDataServiceUUIDs =         (\r\n            \"0783B03E-8535-B5A0-7140-A304D2495CB7\"\r\n        );\r\n    };\r\n    id = \"B6EDADC8-4244-0753-766B-08CFB6EEA058\";\r\n    name = SCARAB;\r\n    rssi = \"-52\";\r\n}\r\n\r\n2017-11-16 16:37:29.423090-0500 Scarab[1029:889444] connect\r\n2017-11-16 16:37:29.423105-0500 Scarab[1029:889444] Connecting to peripheral with UUID : B6EDADC8-4244-0753-766B-08CFB6EEA058\r\n2017-11-16 16:37:29.587105-0500 Scarab[1029:889444] didConnectPeripheral\r\n2017-11-16 16:37:29.945629-0500 Scarab[1029:889444] didDiscoverServices\r\n2017-11-16 16:37:30.188931-0500 Scarab[1029:889444] didDiscoverCharacteristicsForService\r\n2017-11-16 16:37:30.189490-0500 Scarab[1029:889444] Found characteristics for service <CBService: 0x1c0468780, isPrimary = YES, UUID = 0783B03E-8535-B5A0-7140-A304D2495CB7>\r\n2017-11-16 16:37:30.189646-0500 Scarab[1029:889444] Characteristic <CBCharacteristic: 0x1c40bb180, UUID = 0783B03E-8535-B5A0-7140-A304D2495CB8, properties = 0x10, value = (null), notifying = NO>\r\n2017-11-16 16:37:30.189883-0500 Scarab[1029:889444] Characteristic <CBCharacteristic: 0x1c40b9f20, UUID = 0783B03E-8535-B5A0-7140-A304D2495CBA, properties = 0x4, value = (null), notifying = NO>\r\n2017-11-16 16:37:30.190144-0500 Scarab[1029:889444] Characteristic <CBCharacteristic: 0x1c40ba040, UUID = 0783B03E-8535-B5A0-7140-A304D2495CB9, properties = 0x16, value = (null), notifying = NO>\r\n2017-11-16 16:37:30.291490-0500 Scarab[1029:889444] connect success\r\n2017-11-16 16:37:30.291758-0500 Scarab[1029:889444] registering for notification\r\n2017-11-16 16:37:30.291793-0500 Scarab[1029:889444] getData\r\n2017-11-16 16:37:30.292072-0500 Scarab[1029:889444] Looking for 0783B03E-8535-B5A0-7140-A304D2495CB8 with properties 16\r\n2017-11-16 16:37:30.335475-0500 Scarab[1029:889444] didUpdateValueForCharacteristic\r\n2017-11-16 16:37:30.338282-0500 Scarab[1029:889444] didUpdateValueForCharacteristic\r\n2017-11-16 16:37:30.364831-0500 Scarab[1029:889444] didUpdateValueForCharacteristic\r\n2017-11-16 16:37:30.395817-0500 Scarab[1029:889444] didUpdateValueForCharacteristic\r\n2017-11-16 16:37:30.455558-0500 Scarab[1029:889444] didUpdateValueForCharacteristic\r\n2017-11-16 16:37:30.545812-0500 Scarab[1029:889444] didUpdateValueForCharacteristic\r\n2017-11-16 16:37:30.579644-0500 Scarab[1029:889444] writeWithoutResponse\r\n2017-11-16 16:37:30.579662-0500 Scarab[1029:889444] getData\r\n2017-11-16 16:37:30.579814-0500 Scarab[1029:889444] Looking for 0783B03E-8535-B5A0-7140-A304D2495CBA with properties 4\r\n2017-11-16 16:37:35.080554-0500 Scarab[1029:889444] didUpdateValueForCharacteristic\r\n2017-11-16 16:37:35.106900-0500 Scarab[1029:889444] didUpdateValueForCharacteristic\r\n2017-11-16 16:37:35.157934-0500 Scarab[1029:889444] didUpdateValueForCharacteristic\r\n2017-11-16 16:37:35.167258-0500 Scarab[1029:889444] didUpdateValueForCharacteristic\r\n2017-11-16 16:37:35.226691-0500 Scarab[1029:889444] didUpdateValueForCharacteristic\r\n2017-11-16 16:37:35.256631-0500 Scarab[1029:889444] didUpdateValueForCharacteristic\r\n2017-11-16 16:37:35.287302-0500 Scarab[1029:889444] didUpdateValueForCharacteristic\r\n2017-11-16 16:37:35.317554-0500 Scarab[1029:889444] didUpdateValueForCharacteristic\r\n2017-11-16 16:37:35.376824-0500 Scarab[1029:889444] didUpdateValueForCharacteristic\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/comments/385234369","html_url":"https://github.com/don/cordova-plugin-ble-central/issues/493#issuecomment-385234369","issue_url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/493","id":385234369,"user":{"login":"kim0z","id":3579282,"avatar_url":"https://avatars0.githubusercontent.com/u/3579282?v=4","gravatar_id":"","url":"https://api.github.com/users/kim0z","html_url":"https://github.com/kim0z","followers_url":"https://api.github.com/users/kim0z/followers","following_url":"https://api.github.com/users/kim0z/following{/other_user}","gists_url":"https://api.github.com/users/kim0z/gists{/gist_id}","starred_url":"https://api.github.com/users/kim0z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kim0z/subscriptions","organizations_url":"https://api.github.com/users/kim0z/orgs","repos_url":"https://api.github.com/users/kim0z/repos","events_url":"https://api.github.com/users/kim0z/events{/privacy}","received_events_url":"https://api.github.com/users/kim0z/received_events","type":"User","site_admin":false},"created_at":"2018-04-29T08:14:37Z","updated_at":"2018-04-29T08:14:37Z","author_association":"NONE","body":"in my case I was using wrong character, now it works. "}}
{"actor":{"display_login":"kim0z"}}