public class hdpManager extends Object implements hdpManagerListener
| Modifier and Type | Field and Description |
|---|---|
static String |
HDP_DEVICE_BLOOD_PRESSURE
Available data types in Toshiba stack
|
static String |
HDP_DEVICE_WEIGHING_SCALE |
static boolean |
readyToCloseWindow |
static boolean |
timeoutLaunched |
| Constructor and Description |
|---|
hdpManager(String str)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
BtHdpClose() |
boolean |
BtHdpLaunchBtSettings() |
boolean |
BtHdpOpen(String dataTypeDevice)
Link management
|
void |
exit()
Close HDP channel and free resources
|
void |
init()
Java methods
|
boolean |
initLibrary()
Native functions
|
void |
onChannelConnected() |
void |
onChannelDisconnected() |
void |
onDiastolicDataReceived(String str) |
void |
onHeartRateDataReceived(String str) |
void |
onMessage(String str) |
void |
onSystolicDataReceived(String str) |
void |
onWeightDataReceived(String str)
Data received from Weighing scale
|
void |
resetComponentsStatus()
Reset components
|
String |
shortDecimalNumber(double unrounded)
Shorten number of decimals
|
void |
waitHDPDataFrames() |
public static final String HDP_DEVICE_BLOOD_PRESSURE
public static final String HDP_DEVICE_WEIGHING_SCALE
public static boolean timeoutLaunched
public static boolean readyToCloseWindow
public hdpManager(String str)
public boolean initLibrary()
public boolean BtHdpLaunchBtSettings()
public boolean BtHdpOpen(String dataTypeDevice)
public boolean BtHdpClose()
public void waitHDPDataFrames()
public void init()
public String shortDecimalNumber(double unrounded)
public void onWeightDataReceived(String str)
onWeightDataReceived in interface hdpManagerListenerpublic void onDiastolicDataReceived(String str)
onDiastolicDataReceived in interface hdpManagerListenerpublic void onSystolicDataReceived(String str)
onSystolicDataReceived in interface hdpManagerListenerpublic void onHeartRateDataReceived(String str)
onHeartRateDataReceived in interface hdpManagerListenerpublic void onMessage(String str)
onMessage in interface hdpManagerListenerpublic void resetComponentsStatus()
public void exit()
public void onChannelConnected()
onChannelConnected in interface hdpManagerListenerpublic void onChannelDisconnected()
onChannelDisconnected in interface hdpManagerListenerCopyright © 2018 universAAL Consortium. All rights reserved.