Skip to content

Commit b646007

Browse files
committed
Update README.md for samples-api.
Bug: 62946568 Change-Id: I567215543f986833f14e255d539317f2116243d6
1 parent d69e14f commit b646007

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

.google/packaging.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
status: PUBLISHED
2+
technologies: [Android, IoT]
3+
categories: [Android Things]
4+
languages: [Java]
5+
solutions: [IoT]
6+
github: androidthings/sample-bluetooth-le-gattserver
7+
license: apache2

README.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
Bluetooth GATT Server Sample
2-
============================
1+
# Bluetooth GATT Server Sample
2+
33
This application demonstrates accessing the `BluetoothGattServer` Android API
44
from within an Android Things application. The sample application advertises
55
the [Current Time Service](https://www.bluetooth.com/specifications/gatt/services),
66
and 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

1917
1. 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
2927
7. 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

3532
You can set the system clock date/time manually on your Android Things board
3633
with 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

5046
You can set the system time zone manually by updating the `persist.sys.timezone`
5147
system 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

6459
Copyright 2017 The Android Open Source Project, Inc.
6560

0 commit comments

Comments
 (0)