Skip to content

48: Power Profile

See how much power is or has been used by the device, as well as current power usage and if the device is charging.

FieldNameDescriptionType
5MethodRequest a service to be perform an action
Possible values:
  • 1: SET— Set one or more values that are provided in the message payload.
  • 2: GET— Get values for the associated message type.
  • 3: SUBSCRIBE— Subscribe to values for the associated message type. Can be used in conjunction with other header fields to define the subscription parameters, such as Interval, Duration, Timeout, Storage Level and Message Level. If no interval is provided, messages will be sent as and when new data is available. Some data, such as GPS position, may require a set interval to be provided.
  • 5: UNSUBSCRIBE— Unsubscribe from a previous subscription.
uint8
This is an extract of header fields that are relevant to this message type, you can find them all documented in the Headers section.

Payload

FieldNameDescriptionTypeUnit
3Total powerTotal power used, since a point in time decided by the method used.
For messages from a SUBSCRIBE, this is the mAH used since the subscription was started
For a GET response, this is the mAH used since the device was turned on
float32mAh
4CurrentInstantaneous Current power usagefloat32mA
5ChargingIs the device currently chargingbool

Examples

Get request
Get response
Subscription Request
Subscription ACK
Subscription update, while on charge

Code

For convenience, the following constants can be used to reference this message type.