| поискавой системы для электроныых деталей |
|
UM1870 датащи(PDF) 29 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM1870 датащи(HTML) 29 Page - STMicroelectronics |
|
29 / 58 page ![]() DocID027602 Rev 1 29/58 UM1870 GUI software description 58 Example 3 # Wait HCI_VENDOR event_code evt = WAIT_EVENT(HCI_VENDOR) #Using evt.get_param('Ecode').val it's possible to verify the type of HCI_VENDOR #event. evtCode = evt.get_param('Ecode').val if (evtCode == EVT_BLUE_GATT_NOTIFICATION): conn_handle=evt.get_param('Connection_Handle').val Example 4 # Wait the Ecode EVT_BLUE_GATT_PROCEDURE_COMPLETE (HCI_VENDOR #event_code). # if no event occurs within the selected timeout, an exception is raised WAIT_EVENT(HCI_VENDOR, timeout=30, Ecode=EVT_BLUE_GATT_PROCEDURE_COMPLETE) Note: If no timeout parameter is specified, it waits until the EVT_BLUE_GATT_PROCEDURE_COMPLETE event occurs. Example 5 # Wait an event for 10 seconds with continueOnEvtMiss set to True # If no event occurs, the script continues (no exception is raised). WAIT_EVENT(timeout=10, continueOnEvtMiss =True) Note: If continueOnEvtMiss parameter is set to False and if no event within the selected timeout occurs, an exception is raised. Example 6 # Wait the HCI_DISCONNECTION_COMPLETE event_code WAIT_EVENT(HCI_DISCONNECTION_COMPLETE) Example 7 # Create a Connection and wait for the HCI_LE_CONNECTION_COMPLETE ACI_GAP_CREATE_CONNECTION(Peer_Address=[0x12, 0x34, 0x00, 0xE1, 0x80, 0x02]) event = WAIT_EVENT(HCI_LE_META, timeout=30,Subevent_Code=HCI_LE_CONNECTION_COMPLETE) if event.get_param('Status').val==0x00: # Store the connection handle conn_handle= event.get_param('Connection_Handle').val # User defined code … GUI script engine loading and running steps To load and run a python script using the BlueNRG-MS GUI script engine, the following steps must be observed: |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |