Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed BLE_API nRF51822 htu21d
Diff: main.cpp
- Revision:
- 1:790c863a9ebd
- Parent:
- 0:3dc6e424dba0
- Child:
- 2:b935358da5ba
diff -r 3dc6e424dba0 -r 790c863a9ebd main.cpp --- a/main.cpp Tue Jul 14 07:09:47 2015 +0000 +++ b/main.cpp Wed Jul 15 03:28:13 2015 +0000 @@ -59,7 +59,7 @@ ble.gap().clearAdvertisingPayload(); } /* Setup advertising. */ - ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED | GapAdvertisingData::LE_LIMITED_DISCOVERABLE); + ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED | GapAdvertisingData::LE_GENERAL_DISCOVERABLE); ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::UNKNOWN); ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::MANUFACTURER_SPECIFIC_DATA, (uint8_t *)ADV_INFO, sizeof(ADV_INFO)); ble.gap().setAdvertisingType(GapAdvertisingParams::ADV_NON_CONNECTABLE_UNDIRECTED);