| Zakładka z wyszukiwarką danych komponentów |
|
PM0237 Arkusz danych(PDF) 77 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0237 Arkusz danych(HTML) 77 Page - STMicroelectronics |
|
77 / 88 page ![]() DocID027104 Rev 2 77/88 PM0237 Design an application using BlueNRG, BlueNRG-MS ACI APIs 88 In the context of the sensor profile demo, follow a simple pseudo code the GAP Central application should use in order to configure the free fall and the acceleration characteristics client descriptors configuration for notification: tBleStatus ret; uint16_t handle_value; #ifdef BLUENRG_MS handle_value = 0x000F; #else /* handle_value = 0x0013; #endif /* Enable the free fall characteristic client descriptor configuration for ret = aci_gatt_write_charac_descriptor(conn_handle, handle_value /* handle for free fall client descriptor configuration */ 0x02, /* attribute value length */ 0x0001, /* attribute value: 1 for notification */ ); if (ret != BLE_STATUS_SUCCESS) PRINTF("Failure.\n")} #ifdef BLUENRG_MS handle_value = 0x0012; #else /* handle_value = 0x0016; aci_gatt_write_charac_descriptor() It start the procedure to write a characteristic descriptor. GATT client aci_gatt_confirm_indication() It confirms an indication. This command has to be sent when the application receives the event EVT_BLUE_GATT_INDICATION on the reception of a characteristic indication. GATT client Table 50. Characteristics update, read, write APIs Discovery service API Description Where |
|
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 |