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:
29
lib/decoder/src/devices/T201_json.h
Normal file
29
lib/decoder/src/devices/T201_json.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#include "common_props.h"
|
||||
|
||||
const char* _T201_json = "{\"brand\":\"Oria\",\"model\":\"TH Sensor\",\"model_id\":\"T201\",\"tag\":\"0103\",\"condition\":[\"name\",\"index\",0,\"T201\",\"&\",\"manufacturerdata\",\">=\",38],\"properties\":{\"tempc\":{\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",24,4,false,true],\"post_proc\":[\"/\",100]},\"hum\":{\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",28,4,false,false],\"post_proc\":[\"/\",100]},\"batt\":{\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",32,2,false,false]},\"mac\":{\"decoder\":[\"mac_from_hex_data\",\"manufacturerdata\",8]}}}";
|
||||
/*R""""(
|
||||
{
|
||||
"brand":"Oria",
|
||||
"model":"TH Sensor",
|
||||
"model_id":"T201",
|
||||
"tag":"0103",
|
||||
"condition":["name", "index", 0, "T201", "&", "manufacturerdata", ">=", 38],
|
||||
"properties":{
|
||||
"tempc":{
|
||||
"decoder":["value_from_hex_data", "manufacturerdata", 24, 4, false, true],
|
||||
"post_proc":["/", 100]
|
||||
},
|
||||
"hum":{
|
||||
"decoder":["value_from_hex_data", "manufacturerdata", 28, 4, false, false],
|
||||
"post_proc":["/", 100]
|
||||
},
|
||||
"batt":{
|
||||
"decoder":["value_from_hex_data", "manufacturerdata", 32, 2, false, false]
|
||||
},
|
||||
"mac":{
|
||||
"decoder":["mac_from_hex_data", "manufacturerdata", 8]
|
||||
}
|
||||
}
|
||||
})"""";*/
|
||||
|
||||
const char* _T201_json_props = _common_BTHM_props;
|
||||
Reference in New Issue
Block a user