Iot.Device.WeightGurusScale.TWeightGurusScale

From IoT
Jump to: navigation, search

Go Up to ThingConnect Devices


Weight Gurus Scale is a scale with biometric calculator.

Use the TWeightGurusScale component to communicate with the Weight Gurus Scale.

Demo Location

You can find the sample projects for the Weight Gurus Scale in the following IoT demo directories after installing the component:

  • Start | Programs | Embarcadero RAD Studio Berlin | Samples and then navigate to:
    • Delphi: Internet of Things\Object Pascal\Thing Connect\WeightGurusScale
    • C++: Internet of Things\CPP\Thing Connect\WeightGurusScale

Supported Services

The Weight Gurus Scale component supports the following Bluetooth LE services and characteristics:

Service Characteristic Property Event Read Subscribe Write
Device Information Firmware Revision String FirmwareRevision OnFirmwareRevisionUpdate
YesSubscriptionFeature.png
Hardware Revision String HardwareRevision OnHardwareRevisionUpdate
YesSubscriptionFeature.png
Manufacturer Name String ManufacturerName OnManufacturerNameUpdate
YesSubscriptionFeature.png
Model Number String ModelNumber OnModelNumberUpdate
YesSubscriptionFeature.png
Serial Number String SerialNumber OnSerialNumberUpdate
YesSubscriptionFeature.png
Software Revision String SoftwareRevision OnSoftwareRevisionUpdate
YesSubscriptionFeature.png
System ID SystemID OnSystemIDUpdate
YesSubscriptionFeature.png

The Weight Gurus Scale component supports the following custom services:

Service Property Event Read Subscribe Write Description
WeightGurus Service Command
YesSubscriptionFeature.png
Sends a command to the device.
Feature OnFeatureUpdate
YesSubscriptionFeature.png
Returns the type of device (Weight Gurus Scale).
OnAppendMeasurementUpdate
YesSubscriptionFeature.png
Returns the estimated body composition measurements from the device.
OnResponseUpdate
YesSubscriptionFeature.png
Returns the response data from the device.
OnMeasurementUpdate
YesSubscriptionFeature.png
Returns the user measurements from the device.

Device Details

  • Device: Weight Gurus
  • Model: Weight Gurus Scale
  • Firmware: 1.0
  • Technology: Bluetooth LE

Custom Data Types

The Weight Gurus Scale defines its custom data types in the following unit:

  • Iot.Device.WeightGurusScaleTypes

Weight Gurus Scale Response

The TWeightGurusScaleResponse type returns the response to the request data, received from the Weight Gurus Scale.

  • Value: Raw array of bytes received from the device.

Weight Gurus Scale Command

The TWeightGurusScaleCommand type contains the command data to send to the Weight Gurus Scale.

  • Value: Raw array of bytes to be sent to the device.

Weight Gurus Scale Measurement

The TWeightGurusScaleMeasurement type returns the user measurements from the device.

  • Value: Raw array of bytes received from the device.
  • PresentProperties: Set of properties in the measurement.
    • Possible values are: MeasurementStatus, Impedance, Timestamp, UnitSystem, UserNumber, WeightDifference, Weight
  • UnitSystem: Preferred user unit system:
    • Kilograms: 0.
    • Pounds: 1.
    • Stones: 2.
  • Weight: Weight measurement returned from the device, in the selected UnitSystem.
  • Impedance: Feet impedance value returned from the measurement.
  • Timestamp: UTC Timestamp value when the measurement was taken.
  • WeightDifference: Difference between the goal weight estimated and the real measurement.
  • UserNumber: User profile number of the measurement.
  • MeasurementStatus: Measurement reliability status.

Weight Gurus Scale Append Measurement

The TWeightGurusScaleAppendMeasurement type returns the estimated body composition measurements from the device.

  • Value: Raw array of bytes received from the device.
  • PresentProperties: Set of properties in the measurement.
    • Possible values are: BasalMeta, Battery, BodyFat, BodyWater, BoneDensity, MuscleMass, Timestamp, UserNumber, VisceralFat
  • Timestamp: UTC Timestamp value when the append measurement was taken.
  • UserNumber: User profile number of the measurement.
  • BasalMeta: The estimated calories of the measurement.
  • BodyFat: Percentage body fat value.
  • BodyWater: Percentage of the total body water in the body.
  • VisceralFat: Percentage of the visceral fat.
  • MuscleMass: Total muscle mass percentage estimation.
  • BoneDensity: Percentage of the total bone density calculated from the measurement.
  • Battery: Battery level of the device.

Known Issues

  • Weight Gurus Scale device cannot be paired to a Windows machine. If the target platform of your application is 32-bit Windows or 64-bit Windows, it cannot be paired to the Weight Gurus Scale.

Device Specific Information

  • Pairing: Press and hold the button on the back of the scale to start Bluetooth and initiate the pairing mode. This mode allows you to retrieve information (serial number, hardware revision etc.) and to set a personalized broadcast name. If you define the BroadCastName const, pairing is optional.
  • Measuring: Press SEL on the scale, select a user and weigh yourself to start Bluetooth.
  • Be sure BroadCastName const has a correct value. To get the BroadCastName and DeviceName, run a Bluetooth scanner. You can deploy the BLEScanner demo project found in the Samples directory (\Samples\Object Pascal\Multi-Device Samples\Device Sensors and Services\Bluetooth\BLEScanner).

Here is an example of what you are looking for:

Mode BLEScanner Const

PAIR

1202B

DeviceName: string = '202B';

BroadCastName: Does not apply

MEASUREMENT

01202BC39C74D1

DeviceName: string = '202B';

BroadCastName: TBytes = [$C3, $9C, $74, $D1]

See Also