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:
47
lib/decoder/src/devices/SBBT_002C_ENCR_json.h
Normal file
47
lib/decoder/src/devices/SBBT_002C_ENCR_json.h
Normal file
@@ -0,0 +1,47 @@
|
||||
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"
|
||||
}
|
||||
}
|
||||
})"""";*/
|
||||
Reference in New Issue
Block a user