mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 07:02:17 +03:00
new Ble ver, 2 parts
This commit is contained in:
60
lib/decoder/src/devices/JQJCY01YM_json.h
Normal file
60
lib/decoder/src/devices/JQJCY01YM_json.h
Normal file
@@ -0,0 +1,60 @@
|
||||
const char* _JQJCY01YM_json = "{\"brand\":\"Xiaomi\",\"model\":\"Formaldehyde detector\",\"model_id\":\"JQJCY01YM\",\"tag\":\"0f\",\"condition\":[\"servicedata\",\"index\",2,\"20df02\"],\"properties\":{\"for\":{\"condition\":[\"servicedata\",23,\"0\"],\"decoder\":[\"value_from_hex_data\",\"servicedata\",28,4,true],\"post_proc\":[\"/\",100]},\"hum\":{\"condition\":[\"servicedata\",23,\"6\"],\"decoder\":[\"value_from_hex_data\",\"servicedata\",28,4,true,false],\"post_proc\":[\"/\",10]},\"tempc\":{\"condition\":[\"servicedata\",23,\"4\"],\"decoder\":[\"value_from_hex_data\",\"servicedata\",28,4,true,false],\"post_proc\":[\"/\",10]},\"batt\":{\"condition\":[\"servicedata\",23,\"a\"],\"decoder\":[\"value_from_hex_data\",\"servicedata\",28,2,false,false]},\"mac\":{\"decoder\":[\"revmac_from_hex_data\",\"servicedata\",10]}}}";
|
||||
/*R""""(
|
||||
{
|
||||
"brand":"Xiaomi",
|
||||
"model":"Formaldehyde detector",
|
||||
"model_id":"JQJCY01YM",
|
||||
"tag":"0f",
|
||||
"condition":["servicedata", "index", 2, "20df02"],
|
||||
"properties":{
|
||||
"for":{
|
||||
"condition":["servicedata", 23, "0"],
|
||||
"decoder":["value_from_hex_data", "servicedata", 28, 4, true],
|
||||
"post_proc":["/", 100]
|
||||
},
|
||||
"hum":{
|
||||
"condition":["servicedata", 23, "6"],
|
||||
"decoder":["value_from_hex_data", "servicedata", 28, 4, true, false],
|
||||
"post_proc":["/", 10]
|
||||
},
|
||||
"tempc":{
|
||||
"condition":["servicedata", 23, "4"],
|
||||
"decoder":["value_from_hex_data", "servicedata", 28, 4, true, false],
|
||||
"post_proc":["/", 10]
|
||||
},
|
||||
"batt":{
|
||||
"condition":["servicedata", 23, "a"],
|
||||
"decoder":["value_from_hex_data", "servicedata", 28, 2, false, false]
|
||||
},
|
||||
"mac":{
|
||||
"decoder":["revmac_from_hex_data", "servicedata", 10]
|
||||
}
|
||||
}
|
||||
})"""";*/
|
||||
|
||||
const char* _JQJCY01YM_json_props = "{\"properties\":{\"batt\":{\"unit\":\"%\",\"name\":\"battery\"},\"tempc\":{\"unit\":\"°C\",\"name\":\"temperature\"},\"hum\":{\"unit\":\"%\",\"name\":\"humidity\"},\"for\":{\"unit\":\"mg/m³\",\"name\":\"formaldehyde\"},\"mac\":{\"unit\":\"string\",\"name\":\"MAC address\"}}}";
|
||||
/*R""""(
|
||||
{
|
||||
"properties":{
|
||||
"batt":{
|
||||
"unit":"%",
|
||||
"name":"battery"
|
||||
},
|
||||
"tempc":{
|
||||
"unit":"°C",
|
||||
"name":"temperature"
|
||||
},
|
||||
"hum":{
|
||||
"unit":"%",
|
||||
"name":"humidity"
|
||||
},
|
||||
"for":{
|
||||
"unit":"mg/m³",
|
||||
"name":"formaldehyde"
|
||||
},
|
||||
"mac":{
|
||||
"unit":"string",
|
||||
"name":"MAC address"
|
||||
}
|
||||
}
|
||||
})"""";*/
|
||||
Reference in New Issue
Block a user