| Moteur de recherche de fiches techniques de composants électroniques |
|
UM1870 Fiches technique(PDF) 25 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM1870 Fiches technique(HTML) 25 Page - STMicroelectronics |
|
25 / 58 page ![]() DocID027602 Rev 1 25/58 UM1870 GUI software description 58 The following pseudo code describes how to initialize a BlueNRG-MS device as a peripheral using a simple python script: # Reset BlueNRG-MS HW_RESET() # Init GATT ACI_GATT_INIT() # Init GAP as central device ACI_GAP_INIT(Role=CENTRAL) When a script is calling a command which generates specific events, the script can detect them by using the WAIT_EVENT (event_code=None, timeout=None, continueOnEvtMiss=False, **param_checks) command. GET_LIST Integer, Number of bytes Convert the integer value to an array of Number of bytes. Example: X = 0x2233 GET_LIST(X, 2) = [0x33,0x22] GET_STACK_VERSION None Return the FW stack version as (major_fw_number,minor_fw_number) GET_RAND_KEY None Returns a random number between 0 and 999999 INSERT_PASS_KEY None Allows to enter a pass key value used for the security pass key method PRINT string Print utility: it displays information on GUI Sent/Received Packets RESET None SW reset SLEEP time It sleeps for “time” seconds SET_MODE Mode Set stack mode (1,2,3) SET_PUBLIC_ADDRESS Public address Set public address (optional) SENSORDEMO_GET_TE MPERATURE None It allows to get the temperature value from the EVT_BLUE_ATT_READ_RESP event (only for the SensorDemo_Central script) SENSORDEMO_GET_AC CELERATION None it allows to get the acceleration values (x,y,z) from the EVT_BLUE_GATT_NOTIFICATION event (only for the SensorDemo_Central script) TIME None It returns the time as a floating point number expressed in seconds since the epoch, in UTC Table 7. GUI script engine: utility commands (continued) Command name Parameters Description |
|
Lien URL |
| ALLDATASHEET vous a-t-il été utile ? [ DONATE ] |
À propos de Alldatasheet | Publicité | Contactez-nous | Politique de confidentialité | Lien vers la fiche technique | Echange de liens | Fabricants 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 |