Object Client#
The Object Transfer Service (OTS) Object Client provides an API for managing objects on the remote Object Server.
Modules#
sl_bt_ots_object_metadata_write_parameters_t
sl_bt_ots_object_metadata_read_parameters_t
sl_bt_ots_oacp_response_data_t
sl_bt_ots_subscription_status_t
Typedefs#
OTS Object Client handle.
OTS Object Client instance type.
Object Action Control Point Features.
Object List Control Point Features.
Object first created.
Object last modified.
Object properties.
Metadata fields type.
OACP Execute opcode parameters.
Object write mode flags.
Data response credits.
Name filter parameters.
Object change flags.
Variables#
Array of OTS Characteristic UUIDs.
Functions#
OTS Object Client status.
OTS Characteristic UUID indices.
Object Transfer Service features.
Object name.
Object size.
Complete Object ID.
Object metadata write event type.
Object metadata write response codes.
Object metadata read event type.
Object metadata read response codes.
OACP opcode.
OACP response code.
OACP Create opcode parameters.
OACP Calculate Checksum opcode parameters.
OACP Write opcode parameters.
OACP Message.
OACP response.
OACP opcode.
OLCP response code.
List Sort Order.
OLCP Go To opcode parameters.
OLCP Order opcode parameters.
OLCP message.
OLCP response message.
Object List Filter.
Time filter parameters.
Size filter parameters.
Object List Filter content.
Object Changed content.
OTS GATT database handles.
Datatype for object list item.
Datatype for object list.
Macros#
OTS Subscription status for no subscription.
OTS Characteristics.
Typedef Documentation#
sl_bt_ots_client_handle_t#
typedef struct sl_bt_ots_client* sl_bt_ots_client_handle_t
OTS Object Client handle.
58
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_connection_callback_t#
typedef void(* sl_bt_ots_client_connection_callback_t) (sl_bt_ots_client_handle_t client) )(sl_bt_ots_client_handle_t client)
[in] | client | Client handle. |
OTS Object Client callback function prototype for connection or disconnection
64
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_subscription_callback_t#
typedef void(* sl_bt_ots_client_subscription_callback_t) (sl_bt_ots_client_handle_t client, sl_bt_ots_subscription_status_t status) )(sl_bt_ots_client_handle_t client, sl_bt_ots_subscription_status_t status)
[in] | client | Client handle. |
[in] | status | Subscription status. |
OTS Object Client callback function prototype for indication subscription status
72
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_object_changed_callback_t#
typedef void(* sl_bt_ots_client_object_changed_callback_t) (sl_bt_ots_client_handle_t client, sl_bt_ots_object_changed_flags_t flags, sl_bt_ots_object_id_t *object) )(sl_bt_ots_client_handle_t client, sl_bt_ots_object_changed_flags_t flags, sl_bt_ots_object_id_t *object)
[in] | client | Client handle. |
[in] | flags | Change flags. The following masks can be used to indicate the nature of change:
|
[in] | object | Object ID. |
OTS Object Client callback function prototype to handle Object Change event
88
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_features_callback_t#
typedef void(* sl_bt_ots_client_features_callback_t) (sl_bt_ots_client_handle_t client, sl_status_t status, sl_bt_ots_features_t features) )(sl_bt_ots_client_handle_t client, sl_status_t status, sl_bt_ots_features_t features)
[in] | client | Client handle. |
[in] | status | Result of the read. |
[in] | features | Features supported by the Server. |
OTS Object Client callback function prototype for OTS Feature read status
99
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_list_filter_write_callback_t#
typedef void(* sl_bt_ots_client_list_filter_write_callback_t) (sl_bt_ots_client_handle_t client, uint16_t status) )(sl_bt_ots_client_handle_t client, uint16_t status)
[in] | client | Client handle. |
[in] | status | GATT result of the write operation. |
OTS Object Client callback function prototype List Filter Write response
109
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_list_filter_read_callback_t#
typedef void(* sl_bt_ots_client_list_filter_read_callback_t) (sl_bt_ots_client_handle_t client, sl_status_t status, sl_bt_ots_object_list_filter_content_t filter) )(sl_bt_ots_client_handle_t client, sl_status_t status, sl_bt_ots_object_list_filter_content_t filter)
[in] | client | Client handle. |
[in] | status | Result of the write operation. |
[in] | filter | Filter data. |
OTS Object Client callback function prototype List Filter Write response
119
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_olcp_callback_t#
typedef void(* sl_bt_ots_client_olcp_callback_t) (sl_bt_ots_client_handle_t client, sl_bt_ots_object_id_t *object, sl_bt_ots_olcp_opcode_t opcode, uint16_t status, sl_bt_ots_olcp_response_code_t response, uint32_t number_of_objects) )(sl_bt_ots_client_handle_t client, sl_bt_ots_object_id_t *object, sl_bt_ots_olcp_opcode_t opcode, uint16_t status, sl_bt_ots_olcp_response_code_t response, uint32_t number_of_objects)
[in] | client | Client handle. |
[in] | object | Object ID. |
[in] | opcode | OLCP Opcode. |
[in] | status | GATT result of the operation. |
[in] | parameters | OLCP response parameters. |
[in] | number_of_objects | Number of objects |
OTS Object Client callback function prototype to handle OLCP responses
133
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_oacp_callback_t#
typedef void(* sl_bt_ots_client_oacp_callback_t) (sl_bt_ots_client_handle_t client, sl_bt_ots_object_id_t *object, sl_bt_ots_oacp_opcode_t opcode, uint16_t status, sl_bt_ots_oacp_response_code_t response, sl_bt_ots_oacp_response_data_t *data) )(sl_bt_ots_client_handle_t client, sl_bt_ots_object_id_t *object, sl_bt_ots_oacp_opcode_t opcode, uint16_t status, sl_bt_ots_oacp_response_code_t response, sl_bt_ots_oacp_response_data_t *data)
[in] | client | Client handle. |
[in] | object | Object ID. |
[in] | opcode | OACP Opcode. |
[in] | status | GATT result of the operation. |
[in] | event | OACP response. |
[in] | event | OACP response parameter. |
OTS Object Client callback function prototype to handle OACP responses
150
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_object_metadata_write_callback_t#
typedef void(* sl_bt_ots_client_object_metadata_write_callback_t) (sl_bt_ots_client_handle_t client, sl_bt_ots_object_id_t *object, sl_bt_ots_object_metadata_write_event_type_t event, uint16_t status) )(sl_bt_ots_client_handle_t client, sl_bt_ots_object_id_t *object, sl_bt_ots_object_metadata_write_event_type_t event, uint16_t status)
[in] | client | Client handle. |
[in] | object | Object ID. |
[in] | event | Metadata type. |
[in] | status | GATT status of the write request. 0 means success. |
OTS Object Server callback function prototype to handle metadata writes
164
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_object_metadata_read_callback_t#
typedef void(* sl_bt_ots_client_object_metadata_read_callback_t) (sl_bt_ots_client_handle_t client, sl_bt_ots_object_id_t *object, uint16_t status, sl_bt_ots_object_metadata_read_event_type_t event, sl_bt_ots_object_metadata_read_parameters_t *parameters) )(sl_bt_ots_client_handle_t client, sl_bt_ots_object_id_t *object, uint16_t status, sl_bt_ots_object_metadata_read_event_type_t event, sl_bt_ots_object_metadata_read_parameters_t *parameters)
[in] | client | Client handle. |
[in] | object | Object ID. |
[in] | status | GATT status. 0 means success. |
[in] | event | Metadata read event. |
[in] | parameters | Metadata event parameters. NULL, if status differs from 0 (success). |
OTS Object Client callback function prototype to handle metadata reads
178
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_data_receive_callback_t#
typedef sl_bt_ots_l2cap_credit_t(* sl_bt_ots_client_data_receive_callback_t) (sl_bt_ots_client_handle_t client, sl_bt_ots_object_id_t *object, uint32_t current_offset, uint8_t *data, uint32_t size) )(sl_bt_ots_client_handle_t client, sl_bt_ots_object_id_t *object, uint32_t current_offset, uint8_t *data, uint32_t size)
[in] | client | Client handle. |
[in] | object | Object ID. |
[in] | current_offset | Current offset from the beginning of the object. |
[in] | data | Pointer to the received data. |
[in] | size | Size of the received data. |
OTS Object Client callback function prototype to handle data reception Returns
Credits to give to the transmitter.
193
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_data_transmit_callback_t#
typedef void(* sl_bt_ots_client_data_transmit_callback_t) (sl_bt_ots_client_handle_t client, sl_bt_ots_object_id_t *object, uint32_t current_offset, uint32_t size, uint8_t **data, uint32_t *data_size) )(sl_bt_ots_client_handle_t client, sl_bt_ots_object_id_t *object, uint32_t current_offset, uint32_t size, uint8_t **data, uint32_t *data_size)
[in] | client | Client handle. |
[in] | object | Object ID reference. |
[in] | offset | Current offset of requested data |
[in] | size | Maximum size of requested data |
[out] | data | Pointer of pointer to data |
[out] | data_size | Size of the provided data |
OTS Object Client callback function prototype to handle data transmission
207
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_data_transfer_finished_t#
typedef void(* sl_bt_ots_client_data_transfer_finished_t) (sl_bt_ots_client_handle_t client, sl_bt_ots_object_id_t *object, sl_bt_ots_transfer_result_t result) )(sl_bt_ots_client_handle_t client, sl_bt_ots_object_id_t *object, sl_bt_ots_transfer_result_t result)
[in] | client | Client handle. |
[in] | object | Object ID. |
[in] | result | Status of the finish. |
OTS Object Client callback function prototype to handle transmission status
219
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_group_metadata_read_t#
typedef void(* sl_bt_ots_client_group_metadata_read_t) (sl_bt_ots_client_handle_t client, sl_bt_ots_object_t *object, sl_bt_ots_metadata_fields_t remaining_fields, sl_status_t result) )(sl_bt_ots_client_handle_t client, sl_bt_ots_object_t *object, sl_bt_ots_metadata_fields_t remaining_fields, sl_status_t result)
[in] | client | Client handle. |
[in] | object | Object reference that passed to read metadata. |
[in] | remaining_fields | Bitfield of remaining fields. The value is 0 if all the fields was read successfully. |
[in] | result | Status of the read operation. |
OTS Object Client callback function prototype to handle metadata read.
231
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_init_callback_t#
typedef void(* sl_bt_ots_client_init_callback_t) (sl_bt_ots_client_handle_t client, sl_status_t result, sl_bt_ots_gattdb_handles_t *gattdb_handles) )(sl_bt_ots_client_handle_t client, sl_status_t result, sl_bt_ots_gattdb_handles_t *gattdb_handles)
[in] | client | Client handle. |
[in] | result | Status of the initialization. |
[in] | gattdb_handles | GATT database handles. |
OTS Object Client callback function prototype to handle initialization status.
243
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_t#
typedef struct sl_bt_ots_client sl_bt_ots_client_t
OTS Object Client instance type.
309
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_oacp_features_t#
typedef uint32_t sl_bt_ots_oacp_features_t
Object Action Control Point Features.
250
of file common/ots/inc/sl_bt_ots_datatypes.h
sl_bt_ots_olcp_features_t#
typedef uint32_t sl_bt_ots_olcp_features_t
Object List Control Point Features.
253
of file common/ots/inc/sl_bt_ots_datatypes.h
sl_bt_ots_object_first_created_t#
typedef sl_bt_ots_time_t sl_bt_ots_object_first_created_t
Object first created.
301
of file common/ots/inc/sl_bt_ots_datatypes.h
sl_bt_ots_object_last_modified_t#
typedef sl_bt_ots_time_t sl_bt_ots_object_last_modified_t
Object last modified.
304
of file common/ots/inc/sl_bt_ots_datatypes.h
sl_bt_ots_object_properties_t#
typedef uint32_t sl_bt_ots_object_properties_t
Object properties.
319
of file common/ots/inc/sl_bt_ots_datatypes.h
sl_bt_ots_metadata_fields_t#
typedef uint8_t sl_bt_ots_metadata_fields_t
Metadata fields type.
359
of file common/ots/inc/sl_bt_ots_datatypes.h
sl_bt_ots_oacp_event_t#
typedef sl_bt_ots_oacp_opcode_t sl_bt_ots_oacp_event_t
402
of file common/ots/inc/sl_bt_ots_datatypes.h
sl_bt_ots_oacp_execute_parameters_t#
typedef uint8array sl_bt_ots_oacp_execute_parameters_t
OACP Execute opcode parameters.
431
of file common/ots/inc/sl_bt_ots_datatypes.h
sl_bt_ots_oacp_write_mode_t#
typedef uint8_t sl_bt_ots_oacp_write_mode_t
Object write mode flags.
440
of file common/ots/inc/sl_bt_ots_datatypes.h
sl_bt_ots_l2cap_credit_t#
typedef uint16_t sl_bt_ots_l2cap_credit_t
Data response credits.
459
of file common/ots/inc/sl_bt_ots_datatypes.h
sl_bt_ots_olcp_event_t#
typedef sl_bt_ots_olcp_opcode_t sl_bt_ots_olcp_event_t
570
of file common/ots/inc/sl_bt_ots_datatypes.h
sl_bt_ots_object_list_filter_name_parameters_t#
typedef sl_bt_ots_object_name_t sl_bt_ots_object_list_filter_name_parameters_t
Name filter parameters.
644
of file common/ots/inc/sl_bt_ots_datatypes.h
sl_bt_ots_object_list_filter_type_parameters_t#
typedef sl_bt_ots_object_type_t sl_bt_ots_object_list_filter_type_parameters_t
658
of file common/ots/inc/sl_bt_ots_datatypes.h
sl_bt_ots_object_changed_flags_t#
typedef uint8_t sl_bt_ots_object_changed_flags_t
Object change flags.
672
of file common/ots/inc/sl_bt_ots_datatypes.h
sl_bt_ots_compare_t#
typedef int(* sl_bt_ots_compare_t) (uint8_t *key_1, uint8_t *key_2) )(uint8_t *key_1, uint8_t *key_2)
[in] | key_1 | Pointer to key 1 |
[in] | key_2 | Pointer to key 2 |
Function prototype to compare keys (for list ordering) Returns
0 if key_1 is equal to key_2, less than 0 if key_2 < key_1 and more than 0 otherwise.
735
of file common/ots/inc/sl_bt_ots_datatypes.h
Variable Documentation#
sl_bt_ots_characteristic_uuids#
const uint16_t sl_bt_ots_characteristic_uuids[SL_BT_OTS_CHARACTERISTIC_UUID_COUNT]
Array of OTS Characteristic UUIDs.
226
of file common/ots/inc/sl_bt_ots_datatypes.h
Function Documentation#
SL_ENUM#
SL_ENUM (sl_bt_ots_client_status_t )
OTS Object Client status.
N/A |
268
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_init#
sl_status_t sl_bt_ots_client_init (sl_bt_ots_client_handle_t client, uint8_t connection, uint32_t service, sl_bt_ots_client_callbacks_t * callbacks, sl_bt_ots_gattdb_handles_t * gattdb_handles)
[in] | client | Client handle. |
[in] | connection | Client connection handle. |
[in] | service | GATT database handle for the OTS service. |
[in] | callbacks | Client callbacks' structure. |
[in] | gattdb_handles | GATT database handles or NULL if not present. |
Initialize Object Client. Returns
Status code
320
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_read_ots_features#
sl_status_t sl_bt_ots_client_read_ots_features (sl_bt_ots_client_handle_t client)
[in] | client | Client handle. |
Read Object Transfer Service Features supported by the Server.
Read response is given in callback. Returns
Status code
333
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_read_object_name#
sl_status_t sl_bt_ots_client_read_object_name (sl_bt_ots_client_handle_t client)
[in] | client | Client handle. |
Read Object Name of the Current Object.
Read response is given in callback. Returns
Status code
342
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_read_object_type#
sl_status_t sl_bt_ots_client_read_object_type (sl_bt_ots_client_handle_t client)
[in] | client | Client handle. |
Read Object Type of the Current Object.
Read response is given in callback. Returns
Status code
351
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_read_object_size#
sl_status_t sl_bt_ots_client_read_object_size (sl_bt_ots_client_handle_t client)
[in] | client | Client handle. |
Read Object Size of the Current Object.
Read response is given in callback. Returns
Status code
360
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_read_object_first_created#
sl_status_t sl_bt_ots_client_read_object_first_created (sl_bt_ots_client_handle_t client)
[in] | client | Client handle. |
Read Object First Created time of the Current Object.
Read response is given in callback. Returns
Status code
369
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_read_object_last_modified#
sl_status_t sl_bt_ots_client_read_object_last_modified (sl_bt_ots_client_handle_t client)
[in] | client | Client handle. |
Read Object Last Modifed time of the Current Object.
Read response is given in callback. Returns
Status code
378
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_read_object_id#
sl_status_t sl_bt_ots_client_read_object_id (sl_bt_ots_client_handle_t client)
[in] | client | Client handle. |
Read Object ID of the Current Object.
Read response is given in callback. Returns
Status code
387
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_read_object_properties#
sl_status_t sl_bt_ots_client_read_object_properties (sl_bt_ots_client_handle_t client)
[in] | client | Client handle. |
Read Object Properties of the Current Object.
Read response is given in callback. Returns
Status code
396
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_write_name#
sl_status_t sl_bt_ots_client_write_name (sl_bt_ots_client_handle_t client, char * name, uint8_t size)
[in] | client | Client handle. |
[in] | name | String containing the new name of the object. |
[in] | size | The size of the name argument. |
Write Object Name of the Current Object.
Write response is given in callback. Returns
Status code
407
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_write_object_first_created#
sl_status_t sl_bt_ots_client_write_object_first_created (sl_bt_ots_client_handle_t client, sl_bt_ots_time_t * time)
[in] | client | Client handle. |
[in] | time | Pointer to time structure. |
Write Object First Created field of the Current Object.
Write response is given in callback. Returns
Status code
419
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_write_object_last_modified#
sl_status_t sl_bt_ots_client_write_object_last_modified (sl_bt_ots_client_handle_t client, sl_bt_ots_time_t * time)
[in] | client | Client handle. |
[in] | time | Pointer to time structure. |
Write Object Last Modifed field of the Current Object.
Write response is given in callback. Returns
Status code
430
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_write_object_properties#
sl_status_t sl_bt_ots_client_write_object_properties (sl_bt_ots_client_handle_t client, sl_bt_ots_object_properties_t properties)
[in] | client | Client handle. |
[in] | properties | Properties bitfield. Possible values:
|
Write Object Properties field of the Current Object.
Write response is given in callback. Returns
Status code
450
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_olcp_first#
sl_status_t sl_bt_ots_client_olcp_first (sl_bt_ots_client_handle_t client)
[in] | client | Client handle. |
Select the first object as Current Object.
Returns
Status code
459
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_olcp_last#
sl_status_t sl_bt_ots_client_olcp_last (sl_bt_ots_client_handle_t client)
[in] | client | Client handle. |
Select the last object as Current Object.
Returns
Status code
467
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_olcp_previous#
sl_status_t sl_bt_ots_client_olcp_previous (sl_bt_ots_client_handle_t client)
[in] | client | Client handle. |
Select the previous object as Current Object.
Returns
Status code
475
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_olcp_next#
sl_status_t sl_bt_ots_client_olcp_next (sl_bt_ots_client_handle_t client)
[in] | client | Client handle. |
Select the next object as Current Object.
Returns
Status code
483
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_olcp_go_to#
sl_status_t sl_bt_ots_client_olcp_go_to (sl_bt_ots_client_handle_t client, sl_bt_ots_object_id_t * object)
[in] | client | Client handle. |
[in] | object | Object ID. |
Select the specified object as Current Object.
Returns
Status code
492
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_olcp_order#
sl_status_t sl_bt_ots_client_olcp_order (sl_bt_ots_client_handle_t client, sl_bt_ots_list_sort_order_t order)
[in] | client | Client handle. |
[in] | order | List sort order. |
Select the List Sort Order.
Returns
Status code
502
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_olcp_request_number_of_objects#
sl_status_t sl_bt_ots_client_olcp_request_number_of_objects (sl_bt_ots_client_handle_t client)
[in] | client | Client handle. |
Request total number of objects.
Returns
Status code
511
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_olcp_clear_marking#
sl_status_t sl_bt_ots_client_olcp_clear_marking (sl_bt_ots_client_handle_t client)
[in] | client | Client handle. |
Clear marking of objects.
Returns
Status code
519
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_read_object_list_filter#
sl_status_t sl_bt_ots_client_read_object_list_filter (sl_bt_ots_client_handle_t client)
[in] | client | Client handle. |
Read object list filter.
Read response is given in callback. Returns
Status code
528
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_write_object_list_filter#
sl_status_t sl_bt_ots_client_write_object_list_filter (sl_bt_ots_client_handle_t client, sl_bt_ots_object_list_filter_content_t filter)
[in] | client | Client handle. |
[in] | filter | Filter type and arguments to set. |
Write/set object list filter.
Write response is given in callback. Returns
Status code
538
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_oacp_create_object#
sl_status_t sl_bt_ots_client_oacp_create_object (sl_bt_ots_client_handle_t client, uint32_t size, sl_bt_ots_object_type_t type)
[in] | client | Client handle. |
[in] | size | Object size. |
[in] | type | Object type. |
Create new object.
Write response is given in callback. Returns
Status code
550
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_oacp_delete_object#
sl_status_t sl_bt_ots_client_oacp_delete_object (sl_bt_ots_client_handle_t client)
[in] | client | Client handle. |
Delete current object.
Write response is given in callback. Returns
Status code
561
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_oacp_calculate_checksum#
sl_status_t sl_bt_ots_client_oacp_calculate_checksum (sl_bt_ots_client_handle_t client, uint32_t offset, uint32_t length)
[in] | client | Client handle. |
[in] | offset | Offset in bytes to calculate checksum from. |
[in] | length | Length of calculation in bytes. |
Calculate checksum for Current Object.
Returns
Status code
571
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_oacp_execute#
sl_status_t sl_bt_ots_client_oacp_execute (sl_bt_ots_client_handle_t client, uint8_t * optional_data, uint8_t optional_data_size)
[in] | client | Client handle. |
[in] | optional_data | Optional data content for execution. |
[in] | optional_data_size | Length of the optional data in bytes. |
Execute Current Object.
Returns
Status code
583
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_oacp_read#
sl_status_t sl_bt_ots_client_oacp_read (sl_bt_ots_client_handle_t client, uint32_t offset, uint32_t length, uint16_t max_sdu, uint16_t max_pdu)
[in] | client | Client handle. |
[in] | offset | Offset to read the object from in bytes. |
[in] | length | Length of data in bytes to be read. |
[in] | max_sdu | The Maximum Service Data Unit size the local channel endpoint can accept Range: 23 to 65533. |
[in] | max_pdu | The maximum PDU payload size the local channel endpoint can accept Range:23 to 252. |
Read Current Object.
Returns
Status code
605
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_oacp_write#
sl_status_t sl_bt_ots_client_oacp_write (sl_bt_ots_client_handle_t client, uint32_t offset, uint32_t length, sl_bt_ots_oacp_write_mode_t mode, uint16_t max_sdu, uint16_t max_pdu)
[in] | client | Client handle. |
[in] | offset | Offset to write the object from in bytes. |
[in] | length | Length of data in bytes to be written. |
[in] | mode | Write mode. |
[in] | max_sdu | The Maximum Service Data Unit size the local channel endpoint can accept Range: 23 to 65533. |
[in] | max_pdu | The maximum PDU payload size the local channel endpoint can accept Range:23 to 252. |
Write Current Object.
Returns
Status code
630
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_oacp_abort#
sl_status_t sl_bt_ots_client_oacp_abort (sl_bt_ots_client_handle_t client)
[in] | client | Client handle. |
Abort current read.
Returns
Status code
643
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_increase_credit#
sl_status_t sl_bt_ots_client_increase_credit (sl_bt_ots_client_handle_t client, uint16_t credit)
[in] | client | Client handle. |
[in] | credit | Number of credit to give (in packets). |
Increase the credit for the L2CAP transfer that is in progress Returns
Response code
651
of file common/ots/inc/sl_bt_ots_client.h
sl_bt_ots_client_abort#
sl_status_t sl_bt_ots_client_abort (sl_bt_ots_client_handle_t client)
[in] | client | Client handle. |
Abort current write or read operation. Close the L2CAP channel in case of Write operation is in progress or execute OACP Abort in case of Read operation is in progress.
Returns
Status code
662
of file common/ots/inc/sl_bt_ots_client.h
SL_ENUM#
SL_ENUM (sl_bt_ots_characteristic_uuid_index )
OTS Characteristic UUID indices.
N/A |
232
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { sl_bt_ots_oacp_features_t oacp_features;sl_bt_ots_olcp_features_t olcp_features;} )
Object Transfer Service features.
N/A |
256
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { uint16_t length;char *name;} )
Object name.
N/A |
263
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { uint32_t current_size;uint32_t allocated_size;} )
Object size.
N/A |
282
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { uint8_t rfu;uint8_t usable[SL_BT_OTS_OBJECT_ID_USABLE_SIZE];} )
Complete Object ID.
N/A |
307
of file common/ots/inc/sl_bt_ots_datatypes.h
SL_ENUM#
SL_ENUM (sl_bt_ots_object_metadata_write_event_type_t )
Object metadata write event type.
N/A |
322
of file common/ots/inc/sl_bt_ots_datatypes.h
SL_ENUM#
SL_ENUM (sl_bt_ots_object_metadata_write_response_code_t )
Object metadata write response codes.
N/A |
338
of file common/ots/inc/sl_bt_ots_datatypes.h
SL_ENUM#
SL_ENUM (sl_bt_ots_object_metadata_read_event_type_t )
Object metadata read event type.
N/A |
348
of file common/ots/inc/sl_bt_ots_datatypes.h
SL_ENUM#
SL_ENUM (sl_bt_ots_object_metadata_read_response_code_t )
Object metadata read response codes.
N/A |
373
of file common/ots/inc/sl_bt_ots_datatypes.h
SL_ENUM#
SL_ENUM (sl_bt_ots_oacp_opcode_t )
OACP opcode.
N/A |
381
of file common/ots/inc/sl_bt_ots_datatypes.h
SL_ENUM#
SL_ENUM (sl_bt_ots_oacp_response_code_t )
OACP response code.
N/A |
405
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { uint32_t size;uint8_t type[SL_BT_OTS_UUID_SIZE_128];} )
OACP Create opcode parameters.
N/A |
419
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { uint32_t offset;uint32_t length;} )
OACP Calculate Checksum opcode parameters.
N/A |
OACP Read opcode parameters.
425
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { uint32_t offset;uint32_t length;sl_bt_ots_oacp_write_mode_t mode;} )
OACP Write opcode parameters.
N/A |
443
of file common/ots/inc/sl_bt_ots_datatypes.h
SL_ENUM#
SL_ENUM (sl_bt_ots_transfer_result_t )
N/A |
461
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { sl_bt_ots_oacp_opcode_t opcode;uint8_t data[];} )
OACP Message.
N/A |
470
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { sl_bt_ots_oacp_opcode_t response_opcode;sl_bt_ots_oacp_opcode_t opcode;sl_bt_ots_oacp_response_code_t response;uint8_t data[];} )
OACP response.
N/A |
485
of file common/ots/inc/sl_bt_ots_datatypes.h
SL_ENUM#
SL_ENUM (sl_bt_ots_olcp_opcode_t )
OACP opcode.
N/A |
493
of file common/ots/inc/sl_bt_ots_datatypes.h
SL_ENUM#
SL_ENUM (sl_bt_ots_olcp_response_code_t )
OLCP response code.
N/A |
573
of file common/ots/inc/sl_bt_ots_datatypes.h
SL_ENUM#
SL_ENUM (sl_bt_ots_list_sort_order_t )
List Sort Order.
N/A |
585
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { sl_bt_ots_object_id_t id;} )
OLCP Go To opcode parameters.
N/A |
599
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { sl_bt_ots_list_sort_order_t list_sort_order;} )
OLCP Order opcode parameters.
N/A |
604
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { sl_bt_ots_olcp_opcode_t opcode;uint8_t data[];} )
OLCP message.
N/A |
615
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { sl_bt_ots_olcp_opcode_t response_opcode;sl_bt_ots_olcp_opcode_t opcode;sl_bt_ots_olcp_response_code_t response;uint32_t number_of_objects;} )
OLCP response message.
N/A |
621
of file common/ots/inc/sl_bt_ots_datatypes.h
SL_ENUM#
SL_ENUM (sl_bt_ots_object_list_filter_type_t )
Object List Filter.
N/A |
629
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { sl_bt_ots_time_t from;sl_bt_ots_time_t to;} )
Time filter parameters.
N/A |
647
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { uint32_t min;uint32_t max;} )
Size filter parameters.
N/A |
653
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { sl_bt_ots_object_list_filter_type_t filter_type;union { sl_bt_ots_object_list_filter_name_parameters_t name;sl_bt_ots_object_list_filter_time_parameters_t time;sl_bt_ots_object_list_filter_size_parameters_t size;sl_bt_ots_object_list_filter_type_parameters_t type;} parameters;} )
Object List Filter content.
N/A |
661
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { sl_bt_ots_object_changed_flags_t flags;sl_bt_ots_object_id_t object;} )
Object Changed content.
N/A |
675
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { uint32_t service;union { uint16_t array[12];1(struct { uint16_t ots_feature;uint16_t object_name;uint16_t object_type;uint16_t object_size;uint16_t object_first_created;uint16_t object_last_modified;uint16_t object_id;uint16_t object_properties;uint16_t object_action_control_point;uint16_t object_list_control_point;uint16_t object_list_filter;uint16_t object_changed;}) handles;} characteristics;} )
OTS GATT database handles.
N/A |
695
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { sl_slist_node_t node;uint8_t *key;uint8_t *value;} )
Datatype for object list item.
N/A |
739
of file common/ots/inc/sl_bt_ots_datatypes.h
typedef#
typedef (struct { sl_bt_ots_compare_t compare;sl_bt_ots_list_item_t *list;} )
Datatype for object list.
N/A |
746
of file common/ots/inc/sl_bt_ots_datatypes.h