Skip to content
This repository was archived by the owner on Feb 16, 2019. It is now read-only.

Bgm racp#1

Open
cjf12harry wants to merge 11 commits intomasterfrom
bgm_racp
Open

Bgm racp#1
cjf12harry wants to merge 11 commits intomasterfrom
bgm_racp

Conversation

@cjf12harry
Copy link

This pull request implements the RACP characteristic for the Glucose Profile. RACP is the record access control point, which the client will interact to query records.

The mapping of this characteristic can be found in https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.record_access_control_point.xml . We use it as a guide to do the serialization and deserialization.

The constructor for this characteristic take in a BluetoothGattCharacteristic object from the Android Bluetooth stack, parse and create a RACP object. This RACP object has all the deserialized data field available for the business application.

Different from other characteristics, the RACP not only does the reading (hence need parsing) from a remote device. It also do the writing to a remote device. As a result, we need to do serialization (composing). We implement a Composable interface, so that we can converted a RACP object into byte array that can be consumed by the Android Bluetooth.

@codecov-io
Copy link

codecov-io commented Sep 21, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@4a0e03c). Click here to learn what that means.
The diff coverage is 54.67%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master       #1   +/-   ##
=========================================
  Coverage          ?   80.35%           
=========================================
  Files             ?       30           
  Lines             ?      952           
  Branches          ?       80           
=========================================
  Hits              ?      765           
  Misses            ?      128           
  Partials          ?       59
Impacted Files Coverage Δ
...eristic/GlucoseMeasurementContextCharacteristic.kt 90.69% <ø> (ø)
...haracteristics/StringCharacteristicDeclarations.kt 0% <ø> (ø)
...oundcharacteristic/GlucoseFeatureCharacteristic.kt 75% <ø> (ø)
...dbleparser/encodedvalue/bgm/bgmmeasurement/Type.kt 93.33% <ø> (ø)
...c/compoundcharacteristic/SystemIdCharacteristic.kt 90.9% <ø> (ø)
.../encodedvalue/bgm/bgmmeasurement/SampleLocation.kt 90% <ø> (ø)
.../jdrfandroidbleparser/utility/BluetoothDateTime.kt 57.14% <ø> (ø)
...bleparser/encodedvalue/bgm/bgmmeasurement/Flags.kt 91.66% <ø> (ø)
...characteristic/GlucoseMeasurementCharacteristic.kt 56.14% <ø> (ø)
...stic/compoundcharacteristic/PnPIdCharacteristic.kt 91.66% <ø> (ø)
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4a0e03c...cd78095. Read the comment docs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants