Skip to content

Commit 95db65a

Browse files
committed
Add more comments to Gap.proto
1 parent 73729e9 commit 95db65a

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

services/ble/Gap.proto

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ message AddressWithType
103103
AddressType addressType = 2;
104104
}
105105

106+
// TODO: See if we can merge this with AdvertisementType
106107
message AdvertisingEventType
107108
{
108109
enum AdvertisingEventTypeEnum
@@ -182,7 +183,6 @@ message SecurityPreference
182183
SupportEnum secureConnections = 1;
183184
SupportEnum mitm = 2;
184185
IoCapabilitiesEnum ioCapabilities = 3;
185-
bool outOfBandSupported = 4;
186186
}
187187

188188
// ==================================================
@@ -192,7 +192,7 @@ message SecurityPreference
192192
// Unless otherwise specified, all methods are allowed in all link layer states
193193
// Callback constraints:
194194
// Unless otherwise specified, methods do not by default result in any callbacks on the response service
195-
// When a callback is specified for a method and only for that method, next of the same method call is not allowed until the callback has been received
195+
// When a callback is specified for a method and only for that method, another call of the same method is not allowed until the callback has been received.
196196
// When a callback is specified for more than one method, any of the associated method calls is not allowed until the callback for the previous call have been received
197197
// ==================================================
198198
service GapPeripheral
@@ -217,15 +217,17 @@ service GapPeripheral
217217
// Allowed in link layer states: standby
218218
// Formatting of advertisement data is as per Bluetooth Core Specification.
219219
// TODO: Include ble spec reference
220-
// Maximum advertisement data length is 28 bytes. Server adds 3 more bytes of flags data with the flag bits 'LE General Discoverable Mode' and 'BR/EDR Not Supported' enabled.
220+
// Maximum advertisement data length for this method is 28 bytes. Server reserves 3 bytes for flags data with the flag bits 'LE General Discoverable Mode' and 'BR/EDR Not Supported' enabled.
221221
// Server will not check validity of the advertisement data and only maximum length of each field will be passed to BLE stack
222+
// If not set by this method, server will have aa advertisement data only flags field.
222223
rpc SetAdvertisementData(AdvertisementData) returns (Nothing) { option (method_id) = 3; }
223224

224225
// Allowed in link layer states: standby
225226
// Formatting of scan response data is as per Bluetooth Core Specification.
226227
// TODO: Include ble spec reference
227-
// Maximum scan response length is 13 bytes. Server reserves 18 bytes for streaming service uuids. Scan Response is only possible with scannable advertisements
228+
// Maximum scan response length for this method is 13 bytes. Server reserves 18 bytes for streaming service uuids. Scan Response is only possible with scannable advertisements
228229
// Server will not check validity of the scan response data and only maximum length of each field will be passed to BLE stack
230+
// If not set by this method, server will have as scan response data only service uuids.
229231
rpc SetScanResponseData(AdvertisementData) returns (Nothing) { option (method_id) = 4; }
230232

231233
// Allowed in link layer states: advertising
@@ -235,7 +237,7 @@ service GapPeripheral
235237
rpc GetAdvertisingAddress(Nothing) returns (Nothing) { option (method_id) = 5; }
236238

237239
// Results in GapPeripheralResponse.IdentityAddress
238-
// Identity address is statically configured
240+
// Type of the identity address is statically configured
239241
rpc GetIdentityAddress(Nothing) returns (Nothing) { option (method_id) = 6; }
240242

241243
// Allowed in link layer states: standby
@@ -286,6 +288,7 @@ service GapPeripheralResponse
286288

287289
// TODO: What is the use for these calls?
288290
// TODO: Do we get these callbacks also when establishing connection from a bonded peer?
291+
// TODO: Can we merge these two calls into one with a boolean parameter?
289292
rpc PairingSuccessfullyCompleted(Nothing) returns(Nothing) { option(method_id) = 5; }
290293
rpc PairingFailed(PairingStatus) returns(Nothing) { option(method_id) = 6; }
291294

@@ -302,6 +305,7 @@ service GapPeripheralReadiness {
302305
option(service_id) = 36;
303306

304307
// TODO: Clarify when this means: This means GapPeripheral service is ready to be used
308+
// TODO: Do we remove this when we merge with Celllar?
305309
rpc DeviceStarted(Nothing) returns(Nothing) { option(method_id) = 1; }
306310
}
307311

0 commit comments

Comments
 (0)