mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
new Ble ver, 2 parts
This commit is contained in:
40
lib/decoder/src/devices/XMTZC04HMLB_json.h
Normal file
40
lib/decoder/src/devices/XMTZC04HMLB_json.h
Normal file
@@ -0,0 +1,40 @@
|
||||
const char* _XMTZC04HMLB_json = "{\"brand\":\"Xiaomi\",\"model\":\"Mi Smart Scale\",\"model_id\":\"XMTZC01HM/XMTZC04HM\",\"tag\":\"05\",\"condition\":[\"servicedata\",\"index\",0,\"23\",\"|\",\"servicedata\",\"index\",0,\"a3\",\"|\",\"servicedata\",\"index\",0,\"63\",\"|\",\"servicedata\",\"index\",0,\"e3\",\"&\",\"servicedata\",\"=\",20,\"&\",\"uuid\",\"contain\",\"181d\"],\"properties\":{\"weighing_mode\":{\"decoder\":[\"bit_static_value\",\"servicedata\",0,2,\"person\",\"object\"]},\"unit\":{\"decoder\":[\"static_value\",\"lb\"]},\"weight\":{\"decoder\":[\"value_from_hex_data\",\"servicedata\",2,4,true,false],\"post_proc\":[\"/\",100]}}}";
|
||||
/*R""""(
|
||||
{
|
||||
"brand":"Xiaomi",
|
||||
"model":"Mi Smart Scale",
|
||||
"model_id":"XMTZC01HM/XMTZC04HM",
|
||||
"tag":"05",
|
||||
"condition":["servicedata", "index", 0, "23", "|", "servicedata", "index", 0, "a3", "|", "servicedata", "index", 0, "63", "|", "servicedata", "index", 0, "e3", "&", "servicedata", "=", 20, "&", "uuid", "contain", "181d"],
|
||||
"properties":{
|
||||
"weighing_mode":{
|
||||
"decoder":["bit_static_value", "servicedata", 0, 2, "person", "object"]
|
||||
},
|
||||
"unit":{
|
||||
"decoder":["static_value", "lb"]
|
||||
},
|
||||
"weight":{
|
||||
"decoder":["value_from_hex_data", "servicedata", 2, 4, true, false],
|
||||
"post_proc":["/", 100]
|
||||
}
|
||||
}
|
||||
})"""";*/
|
||||
|
||||
const char* _XMTZC04HMLB_json_props = "{\"properties\":{\"weighing_mode\":{\"unit\":\"string\",\"name\":\"weighing_mode\"},\"unit\":{\"unit\":\"string\",\"name\":\"unit\"},\"weight\":{\"unit\":\"lb\",\"name\":\"weight\"}}}";
|
||||
/*R""""(
|
||||
{
|
||||
"properties":{
|
||||
"weighing_mode":{
|
||||
"unit":"string",
|
||||
"name":"weighing_mode"
|
||||
},
|
||||
"unit":{
|
||||
"unit":"string",
|
||||
"name":"unit"
|
||||
},
|
||||
"weight":{
|
||||
"unit":"lb",
|
||||
"name":"weight"
|
||||
}
|
||||
}
|
||||
})"""";*/
|
||||
Reference in New Issue
Block a user