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:
40
lib/decoder/src/devices/APPLE_json.h
Normal file
40
lib/decoder/src/devices/APPLE_json.h
Normal file
@@ -0,0 +1,40 @@
|
||||
const char* _APPLE_json = "{\"brand\":\"Apple\",\"model\":\"Apple Continuity\",\"model_id\":\"APPLE_CONT\",\"tag\":\"fe\",\"condition\":[\"manufacturerdata\",\">=\",10,\"index\",0,\"4c000\",\"|\",\"manufacturerdata\",\">=\",10,\"index\",0,\"4c001\",\"&\",\"manufacturerdata\",\"<\",50],\"properties\":{\"device\":{\"decoder\":[\"static_value\",\"Apple device\"]}}}";
|
||||
/*R""""(
|
||||
{
|
||||
"brand":"Apple",
|
||||
"model":"Apple Continuity",
|
||||
"model_id":"APPLE_CONT",
|
||||
"tag":"fe",
|
||||
"condition":["manufacturerdata", ">=", 10, "index", 0, "4c000", "|", "manufacturerdata", ">=", 10, "index", 0, "4c001", "&", "manufacturerdata", "<", 50],
|
||||
"properties":{
|
||||
"device":{
|
||||
"decoder":["static_value", "Apple device"]
|
||||
}
|
||||
}
|
||||
})"""";*/
|
||||
|
||||
const char* _APPLE_json_at = "{\"brand\":\"Apple\",\"model\":\"Apple Continuity\",\"model_id\":\"APPLE_CONTAT\",\"tag\":\"fe\",\"condition\":[\"manufacturerdata\",\">\",50,\"index\",0,\"4c000\",\"|\",\"manufacturerdata\",\">\",50,\"index\",0,\"4c001\"],\"properties\":{\"device\":{\"decoder\":[\"static_value\",\"Apple device\"]}}}";
|
||||
/*R""""(
|
||||
{
|
||||
"brand":"Apple",
|
||||
"model":"Apple Continuity",
|
||||
"model_id":"APPLE_CONTAT",
|
||||
"tag":"fe",
|
||||
"condition":["manufacturerdata", ">", 50, "index", 0, "4c000", "|", "manufacturerdata", ">", 50, "index", 0, "4c001"],
|
||||
"properties":{
|
||||
"device":{
|
||||
"decoder":["static_value", "Apple device"]
|
||||
}
|
||||
}
|
||||
})"""";*/
|
||||
|
||||
const char* _APPLE_json_props = "{\"properties\":{\"device\":{\"unit\":\"string\",\"name\":\"device\"}}}";
|
||||
/*R""""(
|
||||
{
|
||||
"properties":{
|
||||
"device":{
|
||||
"unit":"string",
|
||||
"name":"device"
|
||||
}
|
||||
}
|
||||
})"""";*/
|
||||
Reference in New Issue
Block a user