mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-05-27 13:19:22 +03:00
new Ble ver, 2 parts
This commit is contained in:
48
lib/decoder/src/devices/XMTZC05HMKG_json.h
Normal file
48
lib/decoder/src/devices/XMTZC05HMKG_json.h
Normal file
@@ -0,0 +1,48 @@
|
||||
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"
|
||||
}
|
||||
}
|
||||
})"""";*/
|
||||
Reference in New Issue
Block a user