peripheral_tip
Overview
Application demonstrating the BLE Peripheral role, except that this application specifically implements the Time Profile.
Prepare the Demo
Open example’s project and build it.
Connect a USB cable between the PC host and the OpenSDA USB port on the target board.
Open a serial terminal on PC for OpenSDA serial device with these settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the example.
Running the demo
The demo does not require user interaction. The application will automatically start advertising the Current Time Service and the Reference Time Update Service and it will accept the first connection request it receives. Once the client configures the Current Time Characteristic CCCD for notifications, the server will periodically notify its local time value to the client.