Package com.codename1.health.sensors
Standard Bluetooth SIG health sensors -- heart-rate straps, power meters, speed and cadence sensors, foot pods, thermometers, scales, blood-pressure cuffs and glucose meters.
Start at HealthSensors, reached from
Health.getSensors().
This layer is built entirely on com.codename1.bluetooth.le and needs
no platform health store, so it behaves identically on every port with
Bluetooth LE -- including the desktop and JavaScript ports, where no
health store exists at all. It needs Bluetooth permissions rather than
health ones, and an app that uses only this package is not treated as a
health-data app by the build server.
The measurement parsers are public and static so they can be unit tested without hardware and reused by apps doing their own GATT work. Each returns null rather than throwing on a malformed payload.
-
ClassDescriptionA decoded Blood Pressure Measurement, characteristic
0x2A35, or the Intermediate Cuff Pressure,0x2A36, which shares the same layout.The values of the Body Sensor Location characteristic,0x2A38, as reported bySensorSession.getBodySensorLocation().A decoded Cycling Speed and Cadence Measurement, characteristic0x2A5B.A decoded Cycling Power Measurement, characteristic0x2A63.A decoded Glucose Measurement, characteristic0x2A18.Selects which stored records a glucose meter should replay, forSensorSession.requestStoredRecords(GlucoseRecordFilter).What a filter selects on.A discovered health sensor: what it is, what it advertises, and how strong its signal was.A standard Bluetooth SIG health sensor profile -- the service a device advertises and the measurements it produces.Discovers and streams from standard Bluetooth SIG health sensors -- heart-rate straps, power meters, speed and cadence sensors, foot pods, thermometers, scales, blood-pressure cuffs and glucose meters.A decoded Heart Rate Measurement, characteristic0x2A37.A decoded Running Speed and Cadence Measurement, characteristic0x2A53.Receives sensors found during a scan.Receives measurements and state changes from aSensorSession.A running sensor scan.Which sensors to look for and for how long.A live connection to one health sensor, decoding its notifications into health samples.How aSensorSessionshould behave: reconnection, where samples go, and how stale a cached reading may be.The lifecycle of aSensorSession.A decoded Temperature Measurement, characteristic0x2A1C.A decoded Weight Measurement, characteristic0x2A9D.