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

Evothings application screenshot

Android Evothings application sources

Android application APK

Happy coding!
maxxir 02/03/19

Revisions of main.cpp

Revision Date Message Actions
16:a84185b72bae 2019-03-01 First revision all tests OK File  Diff  Annotate
15:7e06fce6e4f8 2016-01-12 Add missing license information to source code. File  Diff  Annotate
14:1c15d473b42f 2016-01-12 Update example to latest BLE API. File  Diff  Annotate
13:827dd2b32bb8 2015-04-02 removed whitespace and ran code linter/cleanup File  Diff  Annotate
12:06c984252bd1 2015-04-02 fixed small issue with API change File  Diff  Annotate
11:c9c0c4586c5f 2015-04-02 updated the libraries File  Diff  Annotate
8:5442739198ec 2015-03-17 Added comments and disconnection callback option File  Diff  Annotate
7:f9a2fa5b1d43 2015-03-10 changed default advertising data as most phones display it in hex, not ascii File  Diff  Annotate
6:a7595838d240 2015-03-10 final commit File  Diff  Annotate
5:fff16d283dcf 2015-03-10 Added name service to make device easier to find in crowded room File  Diff  Annotate
4:d602b1c3aef4 2015-03-10 made device connectable instead of non-connectable, this is to allow iOS devices to connect and display the advertising info, because no iOS app will just show the advertising data, they have to connect... grrr.... File  Diff  Annotate
3:e9646631084f 2015-03-10 Publishing for use in Meetup; File  Diff  Annotate
1:0692bee84264 2015-02-13 Initial Commit of Evothings custom GAP example App File  Diff  Annotate
0:5375be4301ed 2015-01-28 Initial Base, nothing written, just a skeleton program with libraries File  Diff  Annotate