Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public interface SensorDiscoveryListener

Receives sensors found during a scan. Callbacks arrive on the EDT.

Methods

public abstract void sensorDiscovered(HealthSensor sensor)A health sensor was discovered.
public abstract void scanFailed(HealthException error)The scan could not start, or ended in error.

Method details

sensorDiscovered

public abstract void sensorDiscovered(HealthSensor sensor)
A health sensor was discovered. May be called more than once for the same device as its signal strength changes.

scanFailed

public abstract void scanFailed(HealthException error)
The scan could not start, or ended in error.