Enable EmoGraphy & BioZ data & Accelerometer
Enable / Disable metrics EmoGraphy & BioZ
Please follow the steps below to start getting EmoGraphy and/or BioZ data from the bracelet.
⚠️ Warning
PPG 128HZ can not be enabled when BIOZ or Emography is enabled.
First set the right plan for the bracelet. Please follow the steps in the "Set Plan" section
EmoGraphy & BioZ are paired together in the same command, use the command SetEmographyAndBiozPlan
The best place to call this function is after setting the plan.
class SetEmographyAndBiozPlan(emographyValue: VitalParameterValue, biozValue: VitalParameterValue)
Possible values
val braceletValue: Int) {
DISABLE(1),
BEDTIME_RISETIME(2),
CONTINUOUS(3);
Use BEDTIME_RISETIME to get data between bedtime and risetime
Use CONTINUOUS to get data continuously
Use DISABLE to stop monitoring
Example:
Emography and BioZ are enabled
bleDevice.enqueueCommand(SetEmographyAndBiozPlan(VitalParameterValue.CONTINUOUS, VitalParameterValue.CONTINUOUS),{
result("Set EmoGraphy $emographyValue OK")}, {
result("Set EmoGraphy $emographyValue error $it")})
Enable Emography and Disable BioZ
bleDevice.enqueueCommand(SetEmographyAndBiozPlan(VitalParameterValue.CONTINUOUS, VitalParameterValue.DISABLE),{
result("Set EmoGraphy $emographyValue OK")}, {
result("Set EmoGraphy $emographyValue error $it")})
Disable Emography and Enable BioZ
bleDevice.enqueueCommand(SetEmographyAndBiozPlan(VitalParameterValue.DISABLE, VitalParameterValue.CONTINUOUS),{
result("Set EmoGraphy $emographyValue OK")}, {
result("Set EmoGraphy $emographyValue error $it")})
Disable both Emography and BioZ
bleDevice.enqueueCommand(SetEmographyAndBiozPlan(VitalParameterValue.DISABLE, VitalParameterValue.DISABLE),{
result("Set EmoGraphy $emographyValue OK")}, {
result("Set EmoGraphy $emographyValue error $it")})
Get command
Use the command GetEmoGraphyAndBiozPlan
bleDevice.enqueueCommand(
request = GetEmoGraphyAndBiozPlan(),
...
Enable / Disable Accelerometer
Please follow the steps below to start getting Accelerometer data from the bracelet.
First set the right plan for the bracelet. Please follow the steps in the "Set Plan" section
Use the command SetAccelerometerPlan
The best place to call this function is after setting the plan.
kotlin class SetAccelerometerPlan(value: VitalParameterValue)
Possible values
val braceletValue: Int) {
DISABLE(1),
BEDTIME_RISETIME(2),
CONTINUOUS(3);
Use BEDTIME_RISETIME to get data between bedtime and risetime
Use CONTINUOUS to get data continuously
Use DISABLE to stop monitoring
Example
bleDevice.enqueueCommand(SetAccelerometerPlan(VitalParameterValue.CONTINUOUS),{
Get command
Use the command GetAccelerometerPlan()
bleDevice.enqueueCommand(
request = GetAccelerometerPlan(),
...