mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-05-27 13:19:22 +03:00
48 lines
2.0 KiB
C
48 lines
2.0 KiB
C
|
|
const char* _SBBT_002C_ENCR_json = "{\"brand\":\"Shelly\",\"model\":\"ShellyBLU Button1 encrypted\",\"model_id\":\"SBBT_002C_ENCR\",\"tag\":\"110602\",\"condition\":[\"servicedata\",\"index\",0,\"41\",\"|\",\"servicedata\",\"index\",0,\"45\",\"&\",\"uuid\",\"index\",0,\"fcd2\",\"&\",\"name\",\"index\",0,\"SBBT-002C\"],\"properties\":{\"cipher\":{\"decoder\":[\"string_from_hex_data\",\"servicedata\",2,12]},\"ctr\":{\"decoder\":[\"string_from_hex_data\",\"servicedata\",14,8]},\"mic\":{\"decoder\":[\"string_from_hex_data\",\"servicedata\",22,8]},\"mac\":{\"condition\":[\"manufacturerdata\",\"=\",30],\"decoder\":[\"revmac_from_hex_data\",\"manufacturerdata\",18]}}}";
|
||
|
|
/*R""""(
|
||
|
|
{
|
||
|
|
"brand":"Shelly",
|
||
|
|
"model":"ShellyBLU Button1 encrypted",
|
||
|
|
"model_id":"SBBT_002C_ENCR",
|
||
|
|
"tag":"110602",
|
||
|
|
"condition":["servicedata", "index", 0, "41", "|", "servicedata", "index", 0, "45", "&", "uuid", "index", 0, "fcd2", "&", "name", "index", 0, "SBBT-002C"],
|
||
|
|
"properties":{
|
||
|
|
"cipher":{
|
||
|
|
"decoder":["string_from_hex_data", "servicedata", 2, 12]
|
||
|
|
},
|
||
|
|
"ctr":{
|
||
|
|
"decoder":["string_from_hex_data", "servicedata", 14, 8]
|
||
|
|
},
|
||
|
|
"mic":{
|
||
|
|
"decoder":["string_from_hex_data", "servicedata", 22, 8]
|
||
|
|
},
|
||
|
|
"mac":{
|
||
|
|
"condition":["manufacturerdata", "=", 30],
|
||
|
|
"decoder":["revmac_from_hex_data", "manufacturerdata", 18]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
})"""";*/
|
||
|
|
|
||
|
|
const char* _SBBT_002C_ENCR_json_props = "{\"properties\":{\"cipher\":{\"unit\":\"hex\",\"name\":\"ciphertext\"},\"ctr\":{\"unit\":\"hex\",\"name\":\"counter\"},\"mic\":{\"unit\":\"hex\",\"name\":\"message integrity check\"},\"mac\":{\"unit\":\"string\",\"name\":\"MAC address\"}}}";
|
||
|
|
/*R""""(
|
||
|
|
{
|
||
|
|
"properties":{
|
||
|
|
"cipher":{
|
||
|
|
"unit":"hex",
|
||
|
|
"name":"ciphertext"
|
||
|
|
},
|
||
|
|
"ctr":{
|
||
|
|
"unit":"hex",
|
||
|
|
"name":"counter"
|
||
|
|
},
|
||
|
|
"mic":{
|
||
|
|
"unit":"hex",
|
||
|
|
"name":"message integrity check"
|
||
|
|
},
|
||
|
|
"mac":{
|
||
|
|
"unit":"string",
|
||
|
|
"name":"MAC address"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
})"""";*/
|