Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
system_bt
Commits
ff1469f0
Commit
ff1469f0
authored
9 years ago
by
Arman Uguray
Browse files
Options
Download
Email Patches
Plain Diff
service/doc: Fixed some post-review comments
Change-Id: I62e4f26cc55763f5880922bd06373db47329def9
parent
9fc7d81c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
17 deletions
+41
-17
service/doc/IBluetoothGattServerCallback.txt
service/doc/IBluetoothGattServerCallback.txt
+35
-11
service/doc/IBluetoothLowEnergy.txt
service/doc/IBluetoothLowEnergy.txt
+3
-3
service/doc/IBluetoothLowEnergyCallback.txt
service/doc/IBluetoothLowEnergyCallback.txt
+3
-3
No files found.
service/doc/IBluetoothGattServerCallback.txt
View file @
ff1469f0
...
...
@@ -39,9 +39,16 @@ oneway interface IBluetoothGattServerCallback {
/**
* Called when there is an incoming read request from the remote device with
* address |device_address| for the characteristic with identifier
* |characteristic_id|. An implementation should handle this request by
* calling IBluetoothGattServer.sendResponse with the given |request_id| and
* the appropriate characteristic value.
* |characteristic_id|. |offset| is the index of the characteristic value that
* the remote device wants to read from. If |is_long| is true, then this
* request is part of a Long Read procedure. An implementation should handle
* this request by calling IBluetoothGattServer.sendResponse with the given
* |request_id| and the appropriate characteristic value.
*
* If |offset| is invalid then sendResponse should be called with
* GATT_ERROR_INVALID_OFFSET. If |is_long| is true but this characteristic is
* not a long attribute (i.e. its value would fit within the current ATT MTU),
* then GATT_ERROR_ATTRIBUTE_NOT_LONG should be returned.
*/
void onCharacteristicReadRequest(in String device_address, in int request_id,
in int offset, in boolean is_long,
...
...
@@ -50,9 +57,16 @@ oneway interface IBluetoothGattServerCallback {
/**
* Called when there is an incoming read request from the remote device with
* address |device_address| for the descriptor with identifier
* |descriptor_id|. An implementation should handle this request by
* calling IBluetoothGattServer.sendResponse with the given |request_id| and
* the appropriate descriptor value.
* |descriptor_id|. |offset| is the index of the descriptor value that
* the remote device wants to read from. If |is_long| is true, then this
* request is part of a Long Read procedure. An implementation should handle
* this request by calling IBluetoothGattServer.sendResponse with the given
* |request_id| and the appropriate descriptor value.
*
* If |offset| is invalid then sendResponse should be called with
* GATT_ERROR_INVALID_OFFSET. If |is_long| is true but this descriptor is
* not a long attribute (i.e. its value would fit within the current ATT MTU),
* then GATT_ERROR_ATTRIBUTE_NOT_LONG should be returned.
*/
void onDescriptorReadRequest(in String device_address, in int request_id,
in int offset, in boolean is_long,
...
...
@@ -63,10 +77,15 @@ oneway interface IBluetoothGattServerCallback {
* address |device_address| for the characteristic with identifier
* |characteristic_id| with the value |value|. An implementation should handle
* this request by calling IBluetoothGattServer.sendResponse with the given
* |request_id|. If |need_response| is false, then this is a "Write Without
* |request_id|. |offset| is the index of the characteristic value that the
* remote device wants to write to, so the value should be written starting at
* |offset|. If |need_response| is false, then this is a "Write Without
* Response" procedure and sendResponse should not be called. If
* |is_prepare_write| is true, then the implementation should not commit this
* write until a call to onExecuteWriteRequest is received.
*
* If |offset| is invalid, then sendResponse should be called with
* GATT_ERROR_INVALID_OFFSET.
*/
void onCharacteristicWriteRequest(in String device_address, in int request_id,
in int offset, in boolean is_prepare_write,
...
...
@@ -78,10 +97,15 @@ oneway interface IBluetoothGattServerCallback {
* address |device_address| for the descriptor with identifier
* |descriptor_id| with the value |value|. An implementation should handle
* this request by calling IBluetoothGattServer.sendResponse with the given
* |request_id|. If |need_response| is false, then this is a "Write Without
* |request_id|. |offset| is the index of the descriptor value that the
* remote device wants to write to, so the value should be written starting at
* |offset|. If |need_response| is false, then this is a "Write Without
* Response" procedure and sendResponse should not be called. If
* |is_prepare_write| is true, then the implementation should not commit this
* write until a call to onExecuteWriteRequest is received.
*
* If |offset| is invalid, then sendResponse should be called with
* GATT_ERROR_INVALID_OFFSET.
*/
void onDescriptorWriteRequest(in String device_address, in int request_id,
in int offset, in boolean is_prepare_write,
...
...
@@ -102,9 +126,9 @@ oneway interface IBluetoothGattServerCallback {
/**
* Reports the result of a previous call to
* IBluetoothGattServer.sendNotification. If an indication was sent, this will
* be called when the remote
end
sends a confirmation packet. Otherwise
this
* will be called as soon as the notification packet is successfully sent
out
* over the radio.
* be called when the remote
device
sends a confirmation packet. Otherwise
*
this
will be called as soon as the notification packet is successfully sent
*
out
over the radio.
*/
void onNotificationSent(in String device_address, in int status);
}
This diff is collapsed.
Click to expand it.
service/doc/IBluetoothLowEnergy.txt
View file @
ff1469f0
...
...
@@ -38,9 +38,9 @@ interface IBluetoothLowEnergy {
void unregisterAll();
/**
* Starts a multi-advertising instance
with the given
advertising
and scan
* response
data, both of which can be empty. Each of these parameters
must
* contain the raw advertising packet. Returns false if there were any
* Starts a multi-advertising instance
using |
advertising
_data| and
*
|scan_
response
_
data
|
, both of which can be empty. Each of these parameters
*
must
contain the raw advertising packet. Returns false if there were any
* synchronous failures, e.g. if the advertising or scan response data are
* incorrectly formatted. Otherwise, the result of the operation will be
* asynchronously reported in
...
...
This diff is collapsed.
Click to expand it.
service/doc/IBluetoothLowEnergyCallback.txt
View file @
ff1469f0
...
...
@@ -21,9 +21,9 @@
oneway interface IBluetoothLowEnergyCallback {
/**
* Called to report the result of a call to
* IBluetoothLowEnergy.registerClient. |status| will be
0 (or
*
BLE_STATUS_SUCCESS)
if the client was successfully registered. |client_if|
*
is the owning
application's unique Low Energy client handle and can be used
* IBluetoothLowEnergy.registerClient. |status| will be
BLE_STATUS_SUCCESS (0)
* if the client was successfully registered. |client_if|
is the owning
* application's unique Low Energy client handle and can be used
* to perform further operations on the IBluetoothLowEnergy interface.
*/
void onClientRegistered(in int status, in int client_if);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment