{"action":"closed","issue":{"url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/55","repository_url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le","labels_url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/55/comments","events_url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/55/events","html_url":"https://github.com/xabre/xamarin-bluetooth-le/issues/55","id":161143254,"number":55,"title":"Queries on 'Writing a value to a characteristic' in Plugin.BLE nuget package","user":{"login":"leelatoo","id":19994187,"avatar_url":"https://avatars.githubusercontent.com/u/19994187?v=3","gravatar_id":"","url":"https://api.github.com/users/leelatoo","html_url":"https://github.com/leelatoo","followers_url":"https://api.github.com/users/leelatoo/followers","following_url":"https://api.github.com/users/leelatoo/following{/other_user}","gists_url":"https://api.github.com/users/leelatoo/gists{/gist_id}","starred_url":"https://api.github.com/users/leelatoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leelatoo/subscriptions","organizations_url":"https://api.github.com/users/leelatoo/orgs","repos_url":"https://api.github.com/users/leelatoo/repos","events_url":"https://api.github.com/users/leelatoo/events{/privacy}","received_events_url":"https://api.github.com/users/leelatoo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-20T08:38:18Z","updated_at":"2016-08-05T09:38:20Z","closed_at":"2016-08-05T09:38:20Z","body":"Hi,\r\n\r\nI have a few queries related to 'Writing a value to a characteristic’ using Plugin.BLE nuget package. \r\nThe write operation can be of two types: write with response and write without response.\r\n \r\nAccording to Apple's documentation of Core Bluetooth framework, there are two types of characteristic write: CBCharacteristicWriteType - CBCharacteristicWriteWithResponse and CBCharacteristicWriteWithoutResponse. \"The peripheral responds to write requests that are specified as CBCharacteristicWriteWithResponse by calling the peripheral:didWriteValueForCharacteristic:error: method of its delegate object.\"   \r\n                                              \r\nAccording to  Android BluetoothGatt documentation, we can set the write type for a characteristic. “Setting the write type of a characteristic determines how the writeCharacteristic(BluetoothGattCharacteristic) function write this characteristic.”. It can be one of: WRITE_TYPE_DEFAULT, WRITE_TYPE_NO_RESPONSE or WRITE_TYPE_SIGNED.\r\n\r\nIn Plugin.BLE nuget package, we could find there are a few characteristic property types defined related to write: AppleWriteWithoutResponse, WriteWithoutResponse,  AuthenticatedSignedWrites. \r\nAnd we have a method \"WriteAsync(data)\" to write a value to a characteristic, which returns a bool. If the return value is ‘true’, data is written successfully. If it is ‘false’, the data is not written to the characteristic.\r\n\r\n1.\tIs there any way to specify whether this is a writeWithResponse or writeWithoutResponse?  How to perform write with response using Plugin.BLE nugget package?\r\n\r\n2.\tWhat is the difference between WriteWithoutResponse and AppleWriteWithoutResponse?\r\n\r\nCan you please help me getting answers for the above mentioned questions?\r\n\r\n\r\nThanks in advance :)\r\n\r\nRegards,\r\nLeela"}}
{"actor":{"display_login":"xabre"}}