package Ġcom . ad ward st ark . le tooth . commons Ċ Ċ import Ġjava . util . HashMap Ċ Ċ object ĠG att Attributes Ġ{ ĊĊĠĠĠ Ġ// ĠUnknown s ĊĠĠĠ Ġprivate Ġconst Ġval ĠUNKNOWN _ SERVICE Ġ= Ġ" Unknown ĠService " ĊĠĠĠ Ġprivate Ġconst Ġval ĠUNKNOWN _ CHARACTER ISTIC Ġ= Ġ" Unknown ĠCharacter istic " ĊĊĠĠĠ Ġ// ĠGeneric ĠServices ĊĠĠĠ Ġconst Ġval ĠGENER IC _ ACCESS Ġ= Ġ" 0 0 0 0 1 8 0 0 - 0 0 0 0 - 1 0 0 0 - 8 0 0 0 - 0 0 8 0 5 f 9 b 3 4 fb " ĊĠĠĠ Ġconst Ġval ĠGENER IC _ ATTRIBUTE Ġ= Ġ" 0 0 0 0 1 8 0 1 - 0 0 0 0 - 1 0 0 0 - 8 0 0 0 - 0 0 8 0 5 f 9 b 3 4 fb " ĊĠĠĠ Ġconst Ġval ĠDEVICE _ INFORMATION _ SERVICE Ġ= Ġ" 0 0 0 0 1 8 0 a - 0 0 0 0 - 1 0 0 0 - 8 0 0 0 - 0 0 8 0 5 f 9 b 3 4 fb " ĊĠĠĠ Ġconst Ġval ĠHE ART _ RATE Ġ= Ġ" 0 0 0 0 1 8 0 d - 0 0 0 0 - 1 0 0 0 - 8 0 0 0 - 0 0 8 0 5 f 9 b 3 4 fb " ĊĊĠĠĠ Ġ// ĠGeneric ĠCharacter istics ĊĠĠĠ Ġconst Ġval ĠDEVICE _ NAME Ġ= Ġ" 0 0 0 0 2 a 0 0 - 0 0 0 0 - 1 0 0 0 - 8 0 0 0 - 0 0 8 0 5 f 9 b 3 4 fb " ĊĠĠĠ Ġconst Ġval ĠSERIAL _ NUMBER Ġ= Ġ" 0 0 0 0 2 a 2 5 - 0 0 0 0 - 1 0 0 0 - 8 0 0 0 - 0 0 8 0 5 f 9 b 3 4 fb " ĊĠĠĠ Ġconst Ġval ĠAP PE AR ANCE Ġ= Ġ" 0 0 0 0 2 a 0 1 - 0 0 0 0 - 1 0 0 0 - 8 0 0 0 - 0 0 8 0 5 f 9 b 3 4 fb " ĊĠĠĠ Ġconst Ġval ĠMAN U FACT UR ER _ NAME Ġ= Ġ" 0 0 0 0 2 a 2 9 - 0 0 0 0 - 1 0 0 0 - 8 0 0 0 - 0 0 8 0 5 f 9 b 3 4 fb " ĊĠĠĠ Ġconst Ġval ĠSERVICE _ CHANGED Ġ= Ġ" 0 0 0 0 2 a 0 5 - 0 0 0 0 - 1 0 0 0 - 8 0 0 0 - 0 0 8 0 5 f 9 b 3 4 fb " ĊĠĠĠ Ġconst Ġval ĠPER IP HER AL _ PREFERRED _ CONNECTION _ PARAMETERS Ġ= Ġ" 0 0 0 0 2 a 0 4 - 0 0 0 0 - 1 0 0 0 - 8 0 0 0 - 0 0 8 0 5 f 9 b 3 4 fb " ĊĠĠĠ Ġconst Ġval ĠCLIENT _ CHARACTER ISTIC _ CONFIG Ġ= Ġ" 0 0 0 0 2 9 0 2 - 0 0 0 0 - 1 0 0 0 - 8 0 0 0 - 0 0 8 0 5 f 9 b 3 4 fb " ĊĠĠĠ Ġconst Ġval ĠHE ART _ RATE _ MEAS UREMENT Ġ= Ġ" 0 0 0 0 2 a 3 7 - 0 0 0 0 - 1 0 0 0 - 8 0 0 0 - 0 0 8 0 5 f 9 b 3 4 fb " ĊĊĠĠĠ Ġprivate Ġval Ġservice Attributes Ġ= ĠHashMap < String , String >() ĊĠĠĠ Ġprivate Ġval Ġcharacteristic Attributes Ġ= ĠHashMap < String , String >() ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġ// ĠGeneric ĠServices . ĊĠĠĠĠĠĠĠ Ġservice Attributes [ GENERIC _ ACCESS ] Ġ= Ġ" Generic ĠAccess " ĊĠĠĠĠĠĠĠ Ġservice Attributes [ GENERIC _ ATTRIBUTE ] Ġ= Ġ" Generic ĠAttribute " ĊĠĠĠĠĠĠĠ Ġservice Attributes [ DEVICE _ INFORMATION _ SERVICE ] Ġ= Ġ" Device ĠInformation ĠService " ĊĠĠĠĠĠĠĠ Ġservice Attributes [ HE ART _ RATE ] Ġ= Ġ" Heart ĠRate ĠService " ĊĊĠĠĠĠĠĠĠ Ġ// ĠGeneric ĠCharacter istics . ĊĠĠĠĠĠĠĠ Ġcharacteristic Attributes [ DEVICE _ NAME ] Ġ= Ġ" Device ĠName " ĊĠĠĠĠĠĠĠ Ġcharacteristic Attributes [ SERIAL _ NUMBER ] Ġ= Ġ" Serial ĠNumber " ĊĠĠĠĠĠĠĠ Ġcharacteristic Attributes [ AP PE AR ANCE ] Ġ= Ġ" Appearance " ĊĠĠĠĠĠĠĠ Ġcharacteristic Attributes [ MAN U FACT UR ER _ NAME ] Ġ= Ġ" Manufacturer ĠName ĠString " ĊĠĠĠĠĠĠĠ Ġcharacteristic Attributes [ SERVICE _ CHANGED ] Ġ= Ġ" Service ĠChanged " ĊĠĠĠĠĠĠĠ Ġcharacteristic Attributes [ PER IP HER AL _ PREFERRED _ CONNECTION _ PARAMETERS ] Ġ= Ġ" Per ipheral ĠP referred ĠConnection ĠParameters " ĊĠĠĠĠĠĠĠ Ġcharacteristic Attributes [ HE ART _ RATE _ MEAS UREMENT ] Ġ= Ġ" Heart ĠRate ĠMeasurement " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Gatt ServiceName ( uuid : ĠString ): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġname Ġ= Ġservice Attributes [ uuid ] ĊĠĠĠĠĠĠĠ Ġreturn Ġname Ġ?: ĠUNKNOWN _ SERVICE ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget GattCharacteristic Name ( uuid : ĠString ): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġname Ġ= Ġservice Attributes [ uuid ] ĊĠĠĠĠĠĠĠ Ġreturn Ġname Ġ?: ĠUNKNOWN _ CHARACTER ISTIC ĊĠĠĠ Ġ} Ċ Ċ }