Package com.signalquest.api
Class ScanStatus
java.lang.Object
com.signalquest.api.ScanStatus
Contains the BLE scanning information.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Battery percentage remaining, 0-100int
The number of satellites used to calculate the location solutionboolean
Whether a sensor is actively chargingboolean
Whether a sensor is already connected to another device
-
Constructor Details
-
ScanStatus
public ScanStatus(byte[] manufacturerData) Instantiates a new ScanStatus.- Parameters:
manufacturerData
- The sensor's manufacturer data from the BLE advertisement
-
-
Method Details
-
isConnected
public boolean isConnected()Whether a sensor is already connected to another device -
getBattery
public int getBattery()Battery percentage remaining, 0-100 -
isCharging
public boolean isCharging()Whether a sensor is actively charging -
getSatellites
public int getSatellites()The number of satellites used to calculate the location solution
-