mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-05-27 13:19:22 +03:00
49 lines
2.2 KiB
C
49 lines
2.2 KiB
C
const char* _XMTZC05HMKG_json = "{\"brand\":\"Xiaomi\",\"model\":\"Mi Body Composition Scale\",\"model_id\":\"XMTZC02HM/XMTZC05HM\",\"tag\":\"05\",\"condition\":[\"servicedata\",\"index\",1,\"22\",\"|\",\"servicedata\",\"index\",1,\"2a\",\"|\",\"servicedata\",\"index\",1,\"62\",\"|\",\"servicedata\",\"index\",1,\"6a\",\"&\",\"servicedata\",\"=\",26,\"&\",\"uuid\",\"contain\",\"181b\"],\"properties\":{\"weighing_mode\":{\"decoder\":[\"bit_static_value\",\"servicedata\",1,2,\"person\",\"object\"]},\"unit\":{\"decoder\":[\"static_value\",\"kg\"]},\"weight\":{\"decoder\":[\"value_from_hex_data\",\"servicedata\",22,4,true,false],\"post_proc\":[\"/\",200]},\"impedance\":{\"condition\":[\"servicedata\",3,\"6\"],\"decoder\":[\"value_from_hex_data\",\"servicedata\",18,4,true,false]}}}";
|
|
/*R""""(
|
|
{
|
|
"brand":"Xiaomi",
|
|
"model":"Mi Body Composition Scale",
|
|
"model_id":"XMTZC02HM/XMTZC05HM",
|
|
"tag":"05",
|
|
"condition":["servicedata", "index", 1, "22", "|", "servicedata", "index", 1, "2a", "|", "servicedata", "index", 1, "62", "|", "servicedata", "index", 1, "6a", "&", "servicedata", "=", 26, "&", "uuid", "contain", "181b"],
|
|
"properties":{
|
|
"weighing_mode":{
|
|
"decoder":["bit_static_value", "servicedata", 1, 2, "person", "object"]
|
|
},
|
|
"unit":{
|
|
"decoder":["static_value", "kg"]
|
|
},
|
|
"weight":{
|
|
"decoder":["value_from_hex_data", "servicedata", 22, 4, true, false],
|
|
"post_proc":["/", 200]
|
|
},
|
|
"impedance":{
|
|
"condition":["servicedata", 3, "6"],
|
|
"decoder":["value_from_hex_data", "servicedata", 18, 4, true, false]
|
|
}
|
|
}
|
|
})"""";*/
|
|
|
|
const char* _XMTZC05HMKG_json_props = "{\"properties\":{\"weighing_mode\":{\"unit\":\"string\",\"name\":\"weighing_mode\"},\"unit\":{\"unit\":\"string\",\"name\":\"unit\"},\"weight\":{\"unit\":\"kg\",\"name\":\"weight\"},\"impedance\":{\"unit\":\"Ω\",\"name\":\"impedance\"}}}";
|
|
/*R""""(
|
|
{
|
|
"properties":{
|
|
"weighing_mode":{
|
|
"unit":"string",
|
|
"name":"weighing_mode"
|
|
},
|
|
"unit":{
|
|
"unit":"string",
|
|
"name":"unit"
|
|
},
|
|
"weight":{
|
|
"unit":"kg",
|
|
"name":"weight"
|
|
},
|
|
"impedance":{
|
|
"unit":"Ω",
|
|
"name":"impedance"
|
|
}
|
|
}
|
|
})"""";*/
|