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.
Types
class BloodPressureMeasurement | A decoded Blood Pressure Measurement, characteristic 0x2A35, or the Intermediate Cuff Pressure, 0x2A36, which shares the same layout. |
class BodySensorLocation | The values of the Body Sensor Location characteristic, 0x2A38, as reported by SensorSession.getBodySensorLocation(). |
class CscMeasurement | A decoded Cycling Speed and Cadence Measurement, characteristic 0x2A5B. |
class CyclingPowerMeasurement | A decoded Cycling Power Measurement, characteristic 0x2A63. |
class GlucoseMeasurement | A decoded Glucose Measurement, characteristic 0x2A18. |
class GlucoseRecordFilter | Selects which stored records a glucose meter should replay, for SensorSession.requestStoredRecords(GlucoseRecordFilter). |
class HealthSensor | A discovered health sensor: what it is, what it advertises, and how strong its signal was. |
class HealthSensorProfile | A standard Bluetooth SIG health sensor profile – the service a device advertises and the measurements it produces. |
class HealthSensors | 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. |
class HeartRateMeasurement | A decoded Heart Rate Measurement, characteristic 0x2A37. |
class RscMeasurement | A decoded Running Speed and Cadence Measurement, characteristic 0x2A53. |
interface SensorDiscoveryListener | Receives sensors found during a scan. |
interface SensorSampleListener | Receives measurements and state changes from a SensorSession. |
class SensorScan | A running sensor scan. |
class SensorScanSettings | Which sensors to look for and for how long. |
class SensorSession | A live connection to one health sensor, decoding its notifications into health samples. |
class SensorSessionOptions | How a SensorSession should behave: reconnection, where samples go, and how stale a cached reading may be. |
enum SensorSessionState | The lifecycle of a SensorSession. |
class TemperatureMeasurement | A decoded Temperature Measurement, characteristic 0x2A1C. |
class WeightMeasurement | A decoded Weight Measurement, characteristic 0x2A9D. |