mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 14:12:16 +03:00
50 lines
2.1 KiB
C
50 lines
2.1 KiB
C
const char* _BM3IN1_json = "{\"brand\":\"Blue Maestro\",\"model\":\"Tempo Disc\",\"model_id\":\"TD3in1\",\"tag\":\"0208\",\"condition\":[\"manufacturerdata\",\"index\",4,\"16\",\"|\",\"manufacturerdata\",\"index\",4,\"17\",\"&\",\"manufacturerdata\",\"=\",32,\"index\",0,\"3301\"],\"properties\":{\"tempc\":{\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",16,4,false,true],\"post_proc\":[\"/\",10]},\"hum\":{\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",20,4,false,false],\"post_proc\":[\"/\",10]},\"tempc2_dp\":{\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",24,4,false,true],\"post_proc\":[\"/\",10]},\"batt\":{\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",6,2,false,false]}}}";
|
|
/*R""""(
|
|
{
|
|
"brand":"Blue Maestro",
|
|
"model":"Tempo Disc",
|
|
"model_id":"TD3in1",
|
|
"tag":"0208",
|
|
"condition":["manufacturerdata", "index", 4, "16", "|", "manufacturerdata", "index", 4, "17", "&", "manufacturerdata", "=", 32, "index", 0, "3301"],
|
|
"properties":{
|
|
"tempc":{
|
|
"decoder":["value_from_hex_data", "manufacturerdata", 16, 4, false, true],
|
|
"post_proc":["/", 10]
|
|
},
|
|
"hum":{
|
|
"decoder":["value_from_hex_data", "manufacturerdata", 20, 4, false, false],
|
|
"post_proc":["/", 10]
|
|
},
|
|
"tempc2_dp":{
|
|
"decoder":["value_from_hex_data", "manufacturerdata", 24, 4, false, true],
|
|
"post_proc":["/", 10]
|
|
},
|
|
"batt":{
|
|
"decoder":["value_from_hex_data", "manufacturerdata", 6, 2, false, false]
|
|
}
|
|
}
|
|
})"""";*/
|
|
|
|
const char* _BM3IN1_json_props = "{\"properties\":{\"tempc\":{\"unit\":\"°C\",\"name\":\"temperature\"},\"hum\":{\"unit\":\"%\",\"name\":\"humidity\"},\"tempc2_dp\":{\"unit\":\"°C\",\"name\":\"dew point\"},\"batt\":{\"unit\":\"%\",\"name\":\"battery\"}}}";
|
|
/*R""""(
|
|
{
|
|
"properties": {
|
|
"tempc": {
|
|
"unit": "°C",
|
|
"name": "temperature"
|
|
},
|
|
"hum": {
|
|
"unit": "%",
|
|
"name": "humidity"
|
|
},
|
|
"tempc2_dp": {
|
|
"unit": "°C",
|
|
"name": "dew point"
|
|
},
|
|
"batt": {
|
|
"unit": "%",
|
|
"name": "battery"
|
|
}
|
|
}
|
|
})"""";*/
|