Skip to content

Package with the Bluetooth LE UUIDS and corresponding names

License

Notifications You must be signed in to change notification settings

pieterD7/BLEConstants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BLEConstants

Package with the Bluetooth LE UUIDS and their equivalent names

@author : Pieter Hoekstra, pieter@nr8.nl

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()

About

Package with the Bluetooth LE UUIDS and corresponding names

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages