How to turn a WaveShare nRF51-BLE400 into a discoverable beacon using mbed
Dependencies: mbed BLE_API nRF51822
Port for WaveShare BLE400 (chip nRF51 Aliexpress devboard)
Android Evothings good example for Nordic nRF51822-DK
As target for mbed-online used <Nordic nRF51822>
- (Large green board Nordic nRF51822-mKIT, actually deprecated on 01/03/2019)
Briefly: Handle via Evothings BLE Application 4 LEDs and 2 Buttons(via notify messages).
Figure 1: Evothings Android application screenshot
Android Evothings application sources
Happy coding!
maxxir 02/03/19
Diff: main.cpp
- Revision:
- 12:06c984252bd1
- Parent:
- 11:c9c0c4586c5f
- Child:
- 13:827dd2b32bb8
--- a/main.cpp Thu Apr 02 17:19:16 2015 +0000 +++ b/main.cpp Thu Apr 02 18:30:02 2015 +0000 @@ -39,7 +39,7 @@ //ble.accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LOCAL_NAME, (uint8_t *)DEVICE_NAME, sizeof(DEVICE_NAME)); // Set advertising interval. Longer interval = longer battery life - ble.setAdvertisingInterval(0.1); // 100ms, set as percentage of a second + ble.setAdvertisingInterval(100); // 100ms, set as percentage of a second ble.startAdvertising(); // Infinite loop waiting for BLE events