1- Bluetooth GATT Server Sample
2- ============================
1+ # Bluetooth GATT Server Sample
2+
33This application demonstrates accessing the ` BluetoothGattServer ` Android API
44from within an Android Things application. The sample application advertises
55the [ Current Time Service] ( https://www.bluetooth.com/specifications/gatt/services ) ,
66and implements the server role of the GATT
77[ Time Profile] ( https://www.bluetooth.com/specifications/adopted-specifications ) .
88
9- Pre-requisites
10- --------------
9+ ## Pre-requisites
1110
1211- Android Things compatible board
1312- Android device running Android 4.3 (API 18) or later
1413- Android Studio 2.2+
1514
16- Getting Started
17- ---------------
15+ ## Getting Started
1816
19171 . Import the project using Android Studio and deploy it to your board.
2018 The sample will automatically enable the Bluetooth radio, start a GATT
@@ -29,8 +27,7 @@ Getting Started
29277 . Manually [ set the time] ( #setting-the-time ) on your board. The time change
3028 triggers a notification to the client.
3129
32- Setting the Time
33- ----------------
30+ ## Setting the Time
3431
3532You can set the system clock date/time manually on your Android Things board
3633with the ` date ` shell command over [ ADB] ( https://developer.android.com/studio/command-line/adb.html ) .
@@ -44,8 +41,7 @@ $ adb root
4441$ adb shell date 123112002017.00
4542```
4643
47- Setting the Time Zone
48- ---------------------
44+ ## Setting the Time Zone
4945
5046You can set the system time zone manually by updating the ` persist.sys.timezone `
5147system property over [ ADB] ( https://developer.android.com/studio/command-line/adb.html ) .
@@ -58,8 +54,7 @@ $ adb root
5854$ adb shell setprop persist.sys.timezone "America/Denver"
5955```
6056
61- License
62- -------
57+ ## License
6358
6459Copyright 2017 The Android Open Source Project, Inc.
6560
0 commit comments