English
Language : 

UM1870 Datasheet, PDF (45/58 Pages) STMicroelectronics – BlueNRG-MS development kits
UM1870
BlueNRG-MS Beacon demonstration application
7.2.3
Entering non-connectable mode
The BLE Beacon device uses the GAP ACI command to enter non-connectable mode as
follows:
aci_gap_set_discoverable(ADV_NONCONN_IND, 160, 160, PUBLIC_ADDR,
NO_WHITE_LIST_USE,0, NULL, 0, NULL, 0, 0);
In order to advertise the specific selected manufacturer data, the BLE Beacon application
uses the following GAP ACIs:
/* Remove TX power level field from the advertising data: it is necessary to have enough
space for the beacon manufacturing data */
ret = aci_gap_delete_ad_type(AD_TYPE_TX_POWER_LEVEL);
/* Define the beacon manufacturing payload */
const uint8_t manuf_data[] = {26, AD_TYPE_MANUFACTURER_SPECIFIC_DATA,
0x30, 0x00, //Company identifier code (Default is 0x0030 - STMicroelectronics)
0x02,
// ID
0x15,
//Length of the remaining payload
0xE2, 0x0A, 0x39, 0xF4, 0x73, 0xF5, 0x4B, 0xC4, //Location UUID
0xA1, 0x2F, 0x17, 0xD1, 0xAD, 0x07, 0xA9, 0x61,
0x00, 0x00, // Major number
0x00, 0x00, // Minor number
0xC8
//2's complement of the Tx power (-56dB)};
};
/* Set the beacon manufacturing data on the advertising packet */
ret = aci_gap_update_adv_data(27, manuf_data);
DocID027602 Rev 1
45/58
58