Code Monkey home page Code Monkey logo

tsinova-ble-sdk's Introduction

Tsinova BLE SDK

JitPack Bintray License

Gradle集成

Gradle integration

compile('com.tsinova:TsinovaBluetooth:1.0.3') {		
       transitive = true		
       exclude group: 'com.google.code.gson', module: 'gson'		
       exclude group: 'org.greenrobot', module: 'eventbus'		
       exclude group: 'com.getkeepsafe.relinker', module: 'relinker'		
} 		

快速开始

Rapid Starting

1.请在清单文件中声明以下service (Please state the following service in the list of files)

<service		
           android:name="com.tsinova.bluetoothandroid.bluetooth.BluetoothLeService"		
           android:enabled="true" />		

2.设置 (Configure) application context、bikeBluetoothNumber、pageName

SingletonBTInfo.INSTANCE.setApplicationContext(applicationContext);		
SingletonBTInfo.INSTANCE.setBikeBluetoothNumber(bikeBluetoothNumber);		
SingletonBTInfo.INSTANCE.setPageName("pageName");		
		
//如果你的电单车蓝牙传输数据不需要加密,请调用以下方法,设置为false		
//If the Bluetooth transmission of your ebike isn’t necessarily encrypted, please utilize the following method, set to false		
SingletonBTInfo.INSTANCE.setEncryption(false);		

3.连接电单车代码请看BluetoothManager.class (Please refer to BluetoothManager.class for codes to connect to the ebike)

mManager.scanLeDevice()		
mManager.setScanCallBack()		
mManager.connect()

tsinova-ble-sdk's People

Contributors

warry19940712 avatar ihgoo avatar niusidi avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.