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:
55
lib/decoder/src/devices/ABN03_json.h
Normal file
55
lib/decoder/src/devices/ABN03_json.h
Normal file
@@ -0,0 +1,55 @@
|
||||
const char* _ABN03_json = "{\"brand\":\"April Brother\",\"model\":\"N03\",\"model_id\":\"ABN03\",\"tag\":\"0208\",\"condition\":[\"servicedata\",\"=\",30,\"index\",0,\"ab03\"],\"properties\":{\"tempc\":{\"decoder\":[\"value_from_hex_data\",\"servicedata\",18,4,true,true],\"post_proc\":[\"/\",8]},\"hum\":{\"decoder\":[\"value_from_hex_data\",\"servicedata\",22,4,true,false],\"post_proc\":[\"/\",2]},\"lux\":{\"decoder\":[\"value_from_hex_data\",\"servicedata\",26,4,true,false]},\"batt\":{\"decoder\":[\"value_from_hex_data\",\"servicedata\",16,2,false,false]},\"mac\":{\"decoder\":[\"mac_from_hex_data\",\"servicedata\",4]}}}";
|
||||
/* R""""(
|
||||
{
|
||||
"brand":"April Brother",
|
||||
"model":"N03",
|
||||
"model_id":"ABN03",
|
||||
"tag":"0208",
|
||||
"condition":["servicedata", "=", 30, "index", 0, "ab03"],
|
||||
"properties":{
|
||||
"tempc":{
|
||||
"decoder":["value_from_hex_data", "servicedata", 18, 4, true, true],
|
||||
"post_proc":["/", 8]
|
||||
},
|
||||
"hum":{
|
||||
"decoder":["value_from_hex_data", "servicedata", 22, 4, true, false],
|
||||
"post_proc":["/", 2]
|
||||
},
|
||||
"lux":{
|
||||
"decoder":["value_from_hex_data", "servicedata", 26, 4, true, false]
|
||||
},
|
||||
"batt":{
|
||||
"decoder":["value_from_hex_data", "servicedata", 16, 2, false, false]
|
||||
},
|
||||
"mac":{
|
||||
"decoder":["mac_from_hex_data", "servicedata", 4]
|
||||
}
|
||||
}
|
||||
})"""";*/
|
||||
|
||||
const char* _ABN03_json_props = "{\"properties\":{\"tempc\":{\"unit\":\"°C\",\"name\":\"temperature\"},\"hum\":{\"unit\":\"%\",\"name\":\"humidity\"},\"lux\":{\"unit\":\"lx\",\"name\":\"illuminance\"},\"batt\":{\"unit\":\"%\",\"name\":\"battery\"},\"mac\":{\"unit\":\"string\",\"name\":\"MAC address\"}}}";
|
||||
/*R""""(
|
||||
{
|
||||
"properties":{
|
||||
"tempc":{
|
||||
"unit":"°C",
|
||||
"name":"temperature"
|
||||
},
|
||||
"hum":{
|
||||
"unit":"%",
|
||||
"name":"humidity"
|
||||
},
|
||||
"lux":{
|
||||
"unit":"lx",
|
||||
"name":"illuminance"
|
||||
},
|
||||
"batt":{
|
||||
"unit":"%",
|
||||
"name":"battery"
|
||||
},
|
||||
"mac":{
|
||||
"unit":"string",
|
||||
"name":"MAC address"
|
||||
}
|
||||
}
|
||||
})"""";*/
|
||||
Reference in New Issue
Block a user