XDK API  3.6.0
Documentation
Data Fields
BleWeightScaleServiceMeasurement Struct Reference

#include <SDK/xdk110/Libraries/BLEStack/3rd-party/Alpwise/ALPW-BLESDKCM3/BLESW_CoreStack/Interfaces/Services/BleWeightScale_Service.h>

+ Collaboration diagram for BleWeightScaleServiceMeasurement:

Data Fields

U16 bmiValue
 
BleWeightScaleServiceMeasurementFlags flagValue
 
U16 heightValue
 
U8 userIdValue
 
U32 weightValue
 

Detailed Description

BleWeightScaleServiceMeasurement type Define the current Weight Scale Measurement value to be set during the call of BLEWEIGHTSCALESERVICE_SetWeightScaleMeasurement

Field Documentation

U16 bmiValue

If the BMI AND HEIGHT feature is supported, it shall be provided and valid during each call of BLEWEIGHTSCALESERVICE_setWeightMeasurement BMI or Body Mass Index is calculated as Weight in kilograms divided by the square of Height in meters. When only imperial values of weight and height are available, BMI can be calculated by dividing the Weight in pounds by the square of the Height in inches and multiplying this by a factor of approximately 703.07

The Bmi value is provided in 10-1 ratio: example: providing 820 as bmiValue, means a BMI value of 82.0

flagValue: The flags indicating what values are included in the measurement

U16 heightValue

heightValue field:

When Measurement Units (bit 0 of Flag) set to 1 : Imperial, => height is provided in 10-1 inch ex: providing 825 as value of heightValue means 82.5 inch

when Measurement Units (bit 0 of Flag) set to 0 : SI => height is provided in millimeter. ex: providing 1825 as value of heightValue means 182.5 cm means 1.825 m

U8 userIdValue

If the Multiple User feature is supported, it shall be provided and valid during each call of BLEWEIGHTSCALESERVICE_setWeightMeasurement if the Server supports two User IDs to distinguish between two users, the Server may use User ID 1 and 2 or User ID 35 and 97 or other unique combinations. A special User ID value of 0xFF represents “unknown user”.

U32 weightValue

Weight field: The Weight field shall be included in the Weight Measurement.

when Measurement Units (bit 0 of Flag) set to 1 : Imperial, => weight is provided in millipound,the final resolution of the provided value will be 10 millipound . (ex: 85642 means 85.640 Pounds)

when Measurement Units (bit 0 of Flag) set to 0 : SI => weight is provided in grammes, the final resolution of the provided value will be 5 grams. (ex: 85640 means 85.640 Kg) range form 0 to 327 Kg


The documentation for this struct was generated from the following file:

All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:56 by doxygen 1.8.8