mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
new Ble ver, 2 parts
This commit is contained in:
22
lib/decoder/src/devices/TPTH_json.h
Normal file
22
lib/decoder/src/devices/TPTH_json.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "common_props.h"
|
||||
|
||||
const char* _TPTH_json = "{\"brand\":\"ThermoPro\",\"model\":\"TH Sensor\",\"model_id\":\"TP35X/393\",\"tag\":\"0103\",\"condition\":[\"name\",\"index\",0,\"TP357\",\"|\",\"name\",\"index\",0,\"TP358\",\"|\",\"name\",\"index\",0,\"TP359\",\"|\",\"name\",\"index\",0,\"TP393\",\"&\",\"manufacturerdata\",\">=\",12,\"index\",0,\"c2\"],\"properties\":{\"tempc\":{\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",2,4,true,true],\"post_proc\":[\"/\",10]},\"hum\":{\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",6,2,false,false]}}}";
|
||||
/*R""""(
|
||||
{
|
||||
"brand":"ThermoPro",
|
||||
"model":"TH Sensor",
|
||||
"model_id":"TP35X/393",
|
||||
"tag":"0103",
|
||||
"condition":["name", "index", 0, "TP357", "|", "name", "index", 0, "TP358", "|", "name", "index", 0, "TP359", "|", "name", "index", 0, "TP393", "&", "manufacturerdata", ">=", 12, "index", 0, "c2"],
|
||||
"properties":{
|
||||
"tempc":{
|
||||
"decoder":["value_from_hex_data", "manufacturerdata", 2, 4, true, true],
|
||||
"post_proc":["/", 10]
|
||||
},
|
||||
"hum":{
|
||||
"decoder":["value_from_hex_data", "manufacturerdata", 6, 2, false, false]
|
||||
}
|
||||
}
|
||||
})"""";*/
|
||||
|
||||
const char* _TPTH_json_props = _common_TH_props;
|
||||
Reference in New Issue
Block a user