项目作者: RideBeeline

项目描述 :
An implementation of the Bluetooth Current Time Service (CTS) for Android applications communicating with a Bluetooth peripheral
高级语言: Java
项目地址: git://github.com/RideBeeline/android-bluetooth-current-time-service.git
创建时间: 2017-01-25T15:27:39Z
项目社区:https://github.com/RideBeeline/android-bluetooth-current-time-service

开源协议:MIT License

下载


Android Bluetooth Current Time Service

An implementation of the Bluetooth Current Time Service for Android applications communicating with a Bluetooth peripheral.

https://beeline.co

Copyright 2017 Relish Technologies Ltd.

Installation

Add the following to your app’s build.gradle:

  1. repositories {
  2. maven { url "https://jitpack.io" }
  3. }
  4. dependencies {
  5. compile "com.github.RideBeeline:android-bluetooth-current-time-service:$version"
  6. }

The latest version is shown at the top of this README.

Usage

When starting your app, for example in the onCreate method of your Application, start CurrentTimeService. Note that Bluetooth should be enabled on the device to successfully start the service.

  1. boolean success = CurrentTimeService.start(this);

When closing your app make sure to stop the service, for example in the onTerminate method of your Application.

  1. CurrentTimeService.stop();