Skip to content

202. Battery Voltage ​

battery_data: battery voltage data.

Structure of battery_data: ​

battery_data structure of Sesame Touch ​

c
#pragma pack(1)
typedef struct
{
    uint16_t light_load_voltage;
    uint16_t heavy_load_voltage;
} battery_data_t;
#pragma pack()

To prevent clients from requesting it too frequently, it is only sent proactively by the sesame device.

Sequence diagram of mechStatus transfer between the phone and ssm5 ​

Sesame Touch push content ​

ByteN ~ 210
Datapayloaditem_codetype
DescriptionData sent to the phoneItem codeType

type : SSM2_OP_CODE_PUBLISH (0x08)

item code : SSM3_ITEM_CODE_BATTERY_VOLTAGE (202)

payload : see the table below

payload ​

Byte3 ~ 0
Databattery_data