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 BloodPressureMeasurementA decoded Blood Pressure Measurement, characteristic 0x2A35, or the Intermediate Cuff Pressure, 0x2A36, which shares the same layout.
class BodySensorLocationThe values of the Body Sensor Location characteristic, 0x2A38, as reported by SensorSession.getBodySensorLocation().
class CscMeasurementA decoded Cycling Speed and Cadence Measurement, characteristic 0x2A5B.
class CyclingPowerMeasurementA decoded Cycling Power Measurement, characteristic 0x2A63.
class GlucoseMeasurementA decoded Glucose Measurement, characteristic 0x2A18.
class GlucoseRecordFilterSelects which stored records a glucose meter should replay, for SensorSession.requestStoredRecords(GlucoseRecordFilter).
class HealthSensorA discovered health sensor: what it is, what it advertises, and how strong its signal was.
class HealthSensorProfileA standard Bluetooth SIG health sensor profile – the service a device advertises and the measurements it produces.
class HealthSensorsDiscovers 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 HeartRateMeasurementA decoded Heart Rate Measurement, characteristic 0x2A37.
class RscMeasurementA decoded Running Speed and Cadence Measurement, characteristic 0x2A53.
interface SensorDiscoveryListenerReceives sensors found during a scan.
interface SensorSampleListenerReceives measurements and state changes from a SensorSession.
class SensorScanA running sensor scan.
class SensorScanSettingsWhich sensors to look for and for how long.
class SensorSessionA live connection to one health sensor, decoding its notifications into health samples.
class SensorSessionOptionsHow a SensorSession should behave: reconnection, where samples go, and how stale a cached reading may be.
enum SensorSessionStateThe lifecycle of a SensorSession.
class TemperatureMeasurementA decoded Temperature Measurement, characteristic 0x2A1C.
class WeightMeasurementA decoded Weight Measurement, characteristic 0x2A9D.