@@ -76,7 +76,7 @@ extern "C" {
76
76
* cbGATT_CLIENT_CHAR_CONFIG - callback that is called when remote device writes the client config cbGATT_ServerWriteClientConfig
77
77
* cbGATT_SERVER_CHAR_CONFIG - callback that is called when remote device writes the server config cbGATT_ServerWriteServerConfig
78
78
* cbGATT_CHAR_USER_DESC and all other CHARACTERISTICS value - cbGATT_ServerWriteAttr callback
79
- * @param pAttrHandle Pointer where to write the attribute handle in case it's needed by the app.
79
+ * @param pAttrHandle Pointer where to write the attribute handle in case it's needed by the app.
80
80
* If not needed, pass NULL. Will be written after the service has been added.
81
81
*/
82
82
typedef struct
@@ -152,7 +152,7 @@ typedef cbGATT_ErrorCode (*cbGATT_ServerReadAttr)(
152
152
* @param pAttr Pointer to attribute record
153
153
* @param pAttrValue Pointer where to get the data
154
154
* @param length The length.
155
- * @param writeMethod Which write method the client is using.
155
+ * @param writeMethod Which write method the client is using.
156
156
* This depends on the properties in the attribute table.
157
157
* @param offset The offset of the written data
158
158
* @return cbGATT_ERROR_CODE_OK if accepted or some cbGATT_ERROR_CODE_* code when failed.
@@ -183,7 +183,7 @@ typedef cbGATT_ErrorCode (*cbGATT_ServerReadClientConfig)(
183
183
* @param connHandle Connection handle
184
184
* @param attrHandle Handle of the attribute value
185
185
* @param config The config to be stored
186
- * @param writeMethod Which write method the client is using.
186
+ * @param writeMethod Which write method the client is using.
187
187
* This depends on the properties in the attribute table.
188
188
* @return cbGATT_ERROR_CODE_OK if accepted or some cbGATT_ERROR_CODE_* code when failed.
189
189
*/
@@ -210,7 +210,7 @@ typedef cbGATT_ErrorCode (*cbGATT_ServerReadServerConfig)(
210
210
* @param connHandle Connection handle
211
211
* @param attrHandle Handle of the attribute value
212
212
* @param config The config to be stored
213
- * @param writeMethod Which write method the client is using.
213
+ * @param writeMethod Which write method the client is using.
214
214
* This depends on the properties in the attribute table.
215
215
* @return cbGATT_ERROR_CODE_OK if accepted or some cbGATT_ERROR_CODE_* code when failed.
216
216
*/
@@ -254,7 +254,7 @@ cb_int32 cbGATT_deregisterAllServers(void);
254
254
/**
255
255
* Send notification to GATT client. The characteristicValueNotificationCnf
256
256
* callback will be called when finished and a new notification can be sent.
257
- * The client config notification must have been enabled by the GATT client
257
+ * The client config notification must have been enabled by the GATT client
258
258
* before an notification can be sent.
259
259
* @param connHandle Connection handle
260
260
* @param attrHandle Handle of the attribute value
@@ -264,16 +264,16 @@ cb_int32 cbGATT_deregisterAllServers(void);
264
264
* @return cbGATT_OK if succeeded or some cbGATT_ERROR* when failed.
265
265
*/
266
266
cb_int32 cbGATT_notification (
267
- TConnHandle connHandle ,
268
- cb_uint16 attrHandle ,
269
- cb_uint8 * pData ,
270
- cb_uint16 length ,
267
+ TConnHandle connHandle ,
268
+ cb_uint16 attrHandle ,
269
+ cb_uint8 * pData ,
270
+ cb_uint16 length ,
271
271
cb_uint8 appHandle );
272
272
273
273
/**
274
274
* Send indication to GATT client. The characteristicValueIndicationCnf
275
275
* callback will be called when finished and a new indication can be sent.
276
- * The client config indication must have been enabled by the GATT client
276
+ * The client config indication must have been enabled by the GATT client
277
277
* before an indication can be sent.
278
278
* @param connHandle Connection handle
279
279
* @param attrHandle Handle of the attribute value
@@ -283,17 +283,17 @@ cb_int32 cbGATT_notification(
283
283
* @return cbGATT_OK if succeeded or some cbGATT_ERROR* when failed.
284
284
*/
285
285
cb_int32 cbGATT_indication (
286
- TConnHandle connHandle ,
287
- cb_uint16 attrHandle ,
288
- cb_uint8 * pData ,
289
- cb_uint16 length ,
286
+ TConnHandle connHandle ,
287
+ cb_uint16 attrHandle ,
288
+ cb_uint8 * pData ,
289
+ cb_uint16 length ,
290
290
cb_uint8 appHandle );
291
291
292
292
/**
293
293
* Delay write respone to client, see cbGATT_ServerWriteAttr
294
294
* @param connHandle Connection handle
295
295
* @param attrHandle Handle of the attribute value
296
- * @param errorCode Error code, use cbGATT_ERROR_CODE_OK if OK otherwise some cbGATT_ERROR_CODE_*
296
+ * @param errorCode Error code, use cbGATT_ERROR_CODE_OK if OK otherwise some cbGATT_ERROR_CODE_*
297
297
* @return cbGATT_OK if succeeded or some cbGATT_ERROR* when failed.
298
298
*/
299
299
cb_int32 cbGATT_writeRsp (
@@ -305,15 +305,15 @@ cb_int32 cbGATT_writeRsp(
305
305
* Add service list to attribute database
306
306
* @param pAttrList Attribute list
307
307
* @param attrListSize Size of the attribute list
308
- * @param startHandle Start handle. Note that startHandle for the application
309
- * should start at lowest 1024, cbGATT_APP_START_SERVICE_HANDLE.
308
+ * @param startHandle Start handle. Note that startHandle for the application
309
+ * should start at lowest 1024, cbGATT_APP_START_SERVICE_HANDLE.
310
310
* 1-1023 is reserved for GATT/GAP and other u-blox services.
311
311
* @return cbGATT_OK if succeeded or some cbGATT_ERROR* when failed.
312
312
*/
313
313
cb_int32 cbGATT_addService (
314
314
const cbGATT_Attribute * pAttrList ,
315
- cb_uint16 attrListSize ,
316
- cb_int16 startHandle );
315
+ cb_uint16 attrListSize ,
316
+ cb_uint16 startHandle );
317
317
318
318
/**
319
319
* NOTE: Only for tests
0 commit comments