UM2264
BlueNRG-1 sensor
profile demo
DocID030868 Rev 1
35/55
10.1
BlueNRG app for smartphones
An application is available for iOS™ and Android™ smartphones or tablets that also works
with the BLE sensor profile demo. This app enables notification of the acceleration
characteristic and displays the value on screen. Data from environmental sensors are also
periodically read and displayed.
Figure 21: BlueNRG sensor app
10.2
BlueNRG-1 sensor profile demo: connection with a central
device
This section describes how to interact with a central device, while the BlueNRG-1 BLE
stack is acting as a peripheral. The central device may be another BlueNRG-1 device
acting as a BLE master, or any other Bluetooth smart or Bluetooth smart ready device.
The BlueNRG-1 BLE stack must first be set up by sending a series of BLE API commands
to the processor.
10.2.1
Initialization
The BlueNRG-1 BLE stack must be correctly initialized before establishing a connection
with another Bluetooth LE device. This is done via:
aci_gatt_init();
aci_gap_init(GAP_PERIPHERAL_ROLE, 0, 0x07, &service_handle, &dev_name_char_handle,
&appearance_char_handle);
See BlueNRG-1 BLE stack API documentation for more information on these and following
commands.