| Electronic Components Datasheet Search |
|
UM1870 Datasheet(PDF) 38 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM1870 Datasheet(HTML) 38 Page - STMicroelectronics |
|
38 / 58 page ![]() BlueNRG-MS sensor profile demo UM1870 38/58 DocID027602 Rev 1 5.4.2 Discovery a sensor peripheral device In order to discover a Sensor Peripheral device, a discovery procedure has to be started with the master library command: – Master_DeviceDiscovery(&devDiscParam); devDiscParam variable allows to set the discovery parameters (discovery procedure, interval, window, …). Refer to the master library doxygen documentation for more information about the command and related parameters. The found devices are returned through the Master_DeviceDiscovery_CB() master library callback (DEVICE_DISCOVERED status). 5.4.3 Connect to discovered sensor peripheral device Once a Sensor Peripheral device has been found, the Sensor Central device connects to it by using the following master library command: – Master_DeviceConnection(&connParam); connParam variable allows to set the connection parameters (connection procedure, scan duration, window,…). Refer to the master library doxygen documentation for more information about the command and related parameters. When the connection is established with success, the Master_Connection_CB() master library callback is called with CONNECTION_ESTABLISHED_EVT event. 5.4.4 Discovery sensor peripheral services and characteristics Once a Sensor Peripheral device has been connected, the Sensor Central device starts discovery all primary service procedure, by using the following master library command: – Master_GetPrimaryServices() Refer to the master library doxygen documentation for more information about the command and related parameters. When services are discovered, the Master_ServiceCharacPeerDiscovery_CB master library callback is called with PRIMARY_SERVICE_DISCOVERY code. In particular the sensor and environmental services are discovered. For each discovered service, the related characteristics are discovered by using the following master library command: – Master_GetCharacOfService() Refer to the master library doxygen documentation for more information about the command and related parameters. When the characteristics of a service are discovered, the Master_ServiceCharacPeerDiscovery_CB master library callback is called with GET_CHARACTERISTICS_OF_A_SERVICE code. In particular the sensor acceleration, free fall and temperature characteristics are discovered. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |