| Datenblatt-Suchmaschine für elektronische Bauteile |
|
PM0237 Datenblatt(PDF) 59 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0237 Datenblatt(HTML) 59 Page - STMicroelectronics |
|
59 / 88 page ![]() DocID027104 Rev 2 59/88 PM0237 Design an application using BlueNRG, BlueNRG-MS ACI APIs 88 tBleStatus ret; const char local_name[] = {AD_TYPE_COMPLETE_LOCAL_NAME,'B','l','u','e','N','R','G' }; /* As scan response data, a proprietary 128bits Service UUID is used. This 128bits data cannot be inserted within the advertising packet (ADV_IND) due its length constraints (31 bytes). */ /* AD Type description: 0x11: length 0x06: 128 bits Service UUID type 0x8a,0x97,0xf7,0xc0,0x85,0x06,0x11,0xe3,0xba,0xa7,0x08,0x00,0x20,0x0c,0x9a ,0x66: 128 bits Service UUID */ uint8_t ServiceUUID_Scan[18]= {0x11,0x06,0x8a,0x97,0xf7,0xc0,0x85,0x06,0x11,0xe3,0xba,0xa7,0x08,0x00,0x2 0,0x0c,0x9a,0x66}; /* Enable scan response to be sent when GAP peripheral receives scan requests from GAP Central performing general discovery procedure(active scan) */ hci_le_set_scan_resp_data(18 , ServiceUUID_Scan); /* Put the GAP peripheral in general discoverable mode: Advertising_Event_Type: ADV_IND (undirected scannable and connectable); Adv_Interval_Min: 0; Adv_Interval_Max: 0; Address_Type: PUBLIC_ADDR (public address: 0x00); Adv_Filter_Policy: NO_WHITE_LIST_USE (no whit list is used); Local_Name_Length: 8 Local_Name: BlueNRG; Service_Uuid_Length: 0 (no service to be advertised); Service_Uuid_List: NULL; Slave_Conn_Interval_Min: 0 (Slave connection internal minimum value); Slave_Conn_Interval_Max: 0 (Slave connection internal maximum value). */ ret = aci_gap_set_discoverable(ADV_IND, 0, 0, PUBLIC_ADDR, NO_WHITE_LIST_USE,sizeof(local_name), local_name, 0, NULL, 0, 0); if (ret != BLE_STATUS_SUCCESS) PRINTF("Failure.\n")} } /* end GAP_Peripheral_Make_Discoverable() */ /* GAP Central: start general discovery procedure to discover the GAP peripheral device in discoverable mode */ void GAP_Central_General_Discovery_Procedure(void ) { tBleStatus ret; |
|
Link URL |
| War ALLDATASHEET hilfreich? [ DONATE ] |
Über Alldatasheet | Werbung | Kontakt | Privatsphäre und Datenschutz | Link zum Datenblatt | Linktausch | Hersteller 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 |