Go to the documentation of this file.
61 #include "custom_config.h"
69 #define DIS_C_CONNECTION_MAX 10
70 #define DIS_C_STRING_LEN_MAX 128
76 #define DIS_C_11073_BODY_EMPTY 0
77 #define DIS_C_11073_BODY_IEEE 1
78 #define DIS_C_11073_BODY_CONTINUA 2
79 #define DIS_C_11073_BODY_EXP 254
135 uint8_t manufacturer_id[5];
136 uint8_t org_unique_id[3];
@ DIS_C_EVT_DISCOVERY_COMPLETE
DIS Client has found Device Information Service and its characteristics.
@ DIS_C_EVT_DISCOVERY_FAIL
DIS Client found DIS service failed because of invalid operation or no found at the peer.
Device Information Service Client Read Response encode structure.
@ DIS_C_EVT_DEV_INFORMATION_READ_RSP
DIS Client has received device information value read response.
dis_c_pnp_id_t pnp_id
PnP ID characteristic response data.
@ DIS_C_MANUF_NAME
Manufacturer Name String characteristic.
uint8_t vendor_id_source
Vendor ID Source.
dis_c_evt_type_t evt_type
DIS Client event type.
void(* dis_c_evt_handler_t)(dis_c_evt_t *p_evt)
Device Information Service Client event handler type.
dis_c_sys_id_t sys_id
System ID characteristic response data.
sdk_err_t dis_c_disc_srvc_start(uint8_t conn_idx)
Discovery Device Information Service on peer.
@ DIS_C_PNP_ID
PnP ID characteristic.
dis_c_string_t string_data
Model Number, Serial Number, Hardware Revision, Firmware Revision, Software Revision,...
Response data for IEEE 11073-20601 Regulatory Certification Data List Structure.
uint8_t * p_list
Pointer to the list which contains the encoded opaque structure based on IEEE 11073-20601 specificati...
@ DIS_C_SERIAL_NUM
Serial Number String characteristic.
uint16_t length
Response data length.
uint8_t * p_data
Pointer to response data.
uint16_t product_id
Product ID.
@ DIS_C_FW_REV
Firmware Revision String characteristic.
uint16_t list_length
Length of the list.
uint16_t vendor_id
Vendor ID.
dis_c_evt_type_t
Device Information Service Client event type.
@ DIS_C_SYS_ID
System ID characteristic.
uint16_t product_version
Product Version.
sdk_err_t dis_client_init(dis_c_evt_handler_t evt_handler)
Register DIS Client event handler.
Profile/Service Common Types.
Response data for System ID parameters.
uint16_t sdk_err_t
SDK API result type.
@ DIS_C_MODEL_NUM
Model Number String characteristic.
Handles on the connected peer device needed to interact with it.
@ DIS_C_CERT_LIST
IEEE 11073-20601 Regulatory Certification Data List characteristic.
Response data for PnP ID parameters.
@ DIS_C_SW_REV
Software Revision String characteristic.
Response data for string-based DIS characteristics.
@ DIS_C_EVT_INVALID
DIS Client invalid event.
uint8_t conn_idx
The connection index.
uint16_t dis_srvc_start_handle
DIS Serivce start handle.
Device Information Service Client event.
@ DIS_C_CHARACTER_NB
Number of all Device Information Service characteristics.
@ DIS_C_HW_REV
Hardware Revision String characteristic.
dis_c_reg_cert_data_list_t cert_list
IEEE 11073-20601 Regulatory Certification Data List characteristic response data.
dis_c_char_type_t char_type
Characteristic type.
uint16_t dis_srvc_end_handle
DIS Service end handle.
dis_c_char_type_t
Device Information Service Client characteristic type.
ble_dis_c_read_rsp_t read_rsp
DIS Client characteristic Read Response encode.
sdk_err_t dis_c_char_value_read(uint8_t conn_idx, dis_c_char_type_t char_read_type)
Read Device Information Service characteristic value.