| Zakładka z wyszukiwarką danych komponentów |
|
PM0237 Arkusz danych(PDF) 70 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0237 Arkusz danych(HTML) 70 Page - STMicroelectronics |
|
70 / 88 page ![]() Design an application using BlueNRG, BlueNRG-MS ACI APIs PM0237 70/88 DocID027104 Rev 2 /* Get the vendor event data */ evt_blue_aci *blue_evt = (void*)event_pckt->data; switch(blue_evt->ecode){ case EVT_BLUE_ATT_READ_BY_GROUP_RESP: { evt_att_read_by_group_resp *pr = (void*)blue_evt->data; /* evt_att_read_by_group_resp parameters: pr->conn_handle: connection handle; pr->event_data_length: total length of the event data; pr->attribute_data_length: length of each specific data within the attribute_data_list[]; pr->attribute_data_list[]: event data. */ /* Add user code for decoding the pr->attribute_data_list[] and getting the services handle, end group handle and service uuid */ .......... }/* EVT_BLUE_ATT_READ_BY_GROUP_RESP */ break; case EVT_BLUE_GATT_PROCEDURE_COMPLETE: { evt_gatt_procedure_complete *pr = (void*)blue_evt->data; /* evt_gatt_procedure_complete parameters: pr->conn_handle: connection handle; pr->attribute_data_length: length of the event data; pr->data[]: event data. */ /* If needed, add user code for using the event data */ ....... }/* EVT_BLUE_GATT_PROCEDURE_COMPLETE */ break; }/* switch(blue_evt->ecode) */ }/* EVT_VENDOR */ break; }/* switch(evt->subevent)*/ }/* end HCI_Event_CB() */ In the context of the Sensor Profile Demo, the GAP Central application should get three EVT_BLUE_ATT_READ_BY_GROUP_RESP events, with following evt_att_read_by_group_resp data: First evt_att_read_by_group_resp event data pr->conn_handle : 0x0801 (connection handle); pr->event_data_length: 0x0D (length of the event data); pr->handle_value_pair_length: 0x06 length of each discovered service data: service handle, end group handle, service uuid); |
|
Link URL |
| Czy Alldatasheet okazała się pomocna? [ DONATE ] |
O Alldatasheet | Reklama | Kontakt | Polityka prywatności | Link do karty katalogowej | Linki | Lista producentów All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |