Skip to content

Commit fba7b7f

Browse files
author
andreas.larsson
committed
Fixed startHandle type for cbGATT_addService
1 parent 358fa5d commit fba7b7f

File tree

1 file changed

+19
-19
lines changed
  • targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/sdk/ublox-odin-w2-drivers

1 file changed

+19
-19
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/sdk/ublox-odin-w2-drivers/cb_gatt_server.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ extern "C" {
7676
* cbGATT_CLIENT_CHAR_CONFIG - callback that is called when remote device writes the client config cbGATT_ServerWriteClientConfig
7777
* cbGATT_SERVER_CHAR_CONFIG - callback that is called when remote device writes the server config cbGATT_ServerWriteServerConfig
7878
* 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.
8080
* If not needed, pass NULL. Will be written after the service has been added.
8181
*/
8282
typedef struct
@@ -152,7 +152,7 @@ typedef cbGATT_ErrorCode (*cbGATT_ServerReadAttr)(
152152
* @param pAttr Pointer to attribute record
153153
* @param pAttrValue Pointer where to get the data
154154
* @param length The length.
155-
* @param writeMethod Which write method the client is using.
155+
* @param writeMethod Which write method the client is using.
156156
* This depends on the properties in the attribute table.
157157
* @param offset The offset of the written data
158158
* @return cbGATT_ERROR_CODE_OK if accepted or some cbGATT_ERROR_CODE_* code when failed.
@@ -183,7 +183,7 @@ typedef cbGATT_ErrorCode (*cbGATT_ServerReadClientConfig)(
183183
* @param connHandle Connection handle
184184
* @param attrHandle Handle of the attribute value
185185
* @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.
187187
* This depends on the properties in the attribute table.
188188
* @return cbGATT_ERROR_CODE_OK if accepted or some cbGATT_ERROR_CODE_* code when failed.
189189
*/
@@ -210,7 +210,7 @@ typedef cbGATT_ErrorCode (*cbGATT_ServerReadServerConfig)(
210210
* @param connHandle Connection handle
211211
* @param attrHandle Handle of the attribute value
212212
* @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.
214214
* This depends on the properties in the attribute table.
215215
* @return cbGATT_ERROR_CODE_OK if accepted or some cbGATT_ERROR_CODE_* code when failed.
216216
*/
@@ -254,7 +254,7 @@ cb_int32 cbGATT_deregisterAllServers(void);
254254
/**
255255
* Send notification to GATT client. The characteristicValueNotificationCnf
256256
* 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
258258
* before an notification can be sent.
259259
* @param connHandle Connection handle
260260
* @param attrHandle Handle of the attribute value
@@ -264,16 +264,16 @@ cb_int32 cbGATT_deregisterAllServers(void);
264264
* @return cbGATT_OK if succeeded or some cbGATT_ERROR* when failed.
265265
*/
266266
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,
271271
cb_uint8 appHandle);
272272

273273
/**
274274
* Send indication to GATT client. The characteristicValueIndicationCnf
275275
* 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
277277
* before an indication can be sent.
278278
* @param connHandle Connection handle
279279
* @param attrHandle Handle of the attribute value
@@ -283,17 +283,17 @@ cb_int32 cbGATT_notification(
283283
* @return cbGATT_OK if succeeded or some cbGATT_ERROR* when failed.
284284
*/
285285
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,
290290
cb_uint8 appHandle);
291291

292292
/**
293293
* Delay write respone to client, see cbGATT_ServerWriteAttr
294294
* @param connHandle Connection handle
295295
* @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_*
297297
* @return cbGATT_OK if succeeded or some cbGATT_ERROR* when failed.
298298
*/
299299
cb_int32 cbGATT_writeRsp(
@@ -305,15 +305,15 @@ cb_int32 cbGATT_writeRsp(
305305
* Add service list to attribute database
306306
* @param pAttrList Attribute list
307307
* @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.
310310
* 1-1023 is reserved for GATT/GAP and other u-blox services.
311311
* @return cbGATT_OK if succeeded or some cbGATT_ERROR* when failed.
312312
*/
313313
cb_int32 cbGATT_addService(
314314
const cbGATT_Attribute* pAttrList,
315-
cb_uint16 attrListSize,
316-
cb_int16 startHandle);
315+
cb_uint16 attrListSize,
316+
cb_uint16 startHandle);
317317

318318
/**
319319
* NOTE: Only for tests

0 commit comments

Comments
 (0)