Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 731 Bytes

README.md

File metadata and controls

28 lines (15 loc) · 731 Bytes

BLEConstants

Package with the Bluetooth LE UUIDS and their equivalent names

@author : Pieter Hoekstra, [email protected]

All other files in this package are copy pasted from https://www.bluetooth.com/specifications/gatt

A few adjustments: - and SPACE are translated as _ in the names of the variables

To use as a jitpack repository :

implementation 'com.github.pieterhoekstra:BLEConstants:0.1.0'

Usage :

UUID uuid = BLEConstants.getUUID(BLEService.Generic_Access));

and:

String name = BLEConstamts.getName((UUID) ....)

New in the latest version is the BLEScanRecord class. You can use it like this:

String scanRecord = new BLEScanRecord((byte[])scanRecordBytes).toString()