Git Product home page Git Product logo

bluetoothpro's Introduction

BluetoothPro

a library for bluetooth

简介


BluetoothPro 是一个专注蓝牙连接的工具库,目的是使涉及到蓝牙相关功能开发变得更加高效快速。

依赖

在你 project 对应的 build.gradle 中添加以下代码:

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

在你需要引用的 module对应的build.gradle中(此处以app_module的build.gradle中引用 0.0.1版本为例)添加版本依赖:

	dependencies {
        implementation 'com.github.ShaoqiangPei:BluetoothPro:0.0.1'
	}

使用说明

一. 调试

本库的debug调试如下:

//调试的 tag = Bluetooth   true:开启调试模式  false:关闭调试模式  默认调试为关闭模式
        //设置蓝牙打印调试(开启)
        BluetoothLog.setDebug(true);

二. 蓝牙操作类

HeadsetHelper ———— 蓝牙耳机连接帮助类
BluetoothScaleManager ———— 蓝牙电子秤管理类

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.