Skip to content

Commit

Permalink
Fix unit tests for SBBT_002C functionality in test_ble.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars committed Sep 12, 2024
1 parent 02076db commit fe48891
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions tests/BLE/test_ble.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,30 +247,30 @@ const char* expected_uuid_name_svcdata[] = {
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU Button1\",\"model_id\":\"SBBT-002C\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":172,\"batt\":100,\"button\":11}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU Button1 encrypted\",\"model_id\":\"SBBT_002C_ENCR\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"encr\":2,\"cipher\":\"62511158bd25\",\"ctr\":\"b8f09364\",\"mic\":\"5b573115\"}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":29,\"batt\":100,\"button1\":1,\"button2\":0,\"button3\":0,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":30,\"batt\":100,\"button\":2,\"button2\":0,\"button3\":0,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":31,\"batt\":100,\"button\":3,\"button2\":0,\"button3\":0,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":32,\"batt\":100,\"button\":9,\"button2\":0,\"button3\":0,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":171,\"batt\":100,\"button\":11,\"button2\":0,\"button3\":0,\"button4\":0}"
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":30,\"batt\":100,\"button1\":2,\"button2\":0,\"button3\":0,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":31,\"batt\":100,\"button1\":3,\"button2\":0,\"button3\":0,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":32,\"batt\":100,\"button1\":9,\"button2\":0,\"button3\":0,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":171,\"batt\":100,\"button1\":11,\"button2\":0,\"button3\":0,\"button4\":0}"
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":29,\"batt\":100,\"button1\":0,\"button2\":1,\"button3\":0,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":30,\"batt\":100,\"button\":0,\"button2\":2,\"button3\":0,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":31,\"batt\":100,\"button\":0,\"button2\":3,\"button3\":0,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":32,\"batt\":100,\"button\":0,\"button2\":9,\"button3\":0,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":171,\"batt\":100,\"button\":0,\"button2\":11,\"button3\":0,\"button4\":0}"
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":30,\"batt\":100,\"button1\":0,\"button2\":2,\"button3\":0,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":31,\"batt\":100,\"button1\":0,\"button2\":3,\"button3\":0,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":32,\"batt\":100,\"button1\":0,\"button2\":9,\"button3\":0,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":171,\"batt\":100,\"button1\":0,\"button2\":11,\"button3\":0,\"button4\":0}"
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":29,\"batt\":100,\"button1\":0,\"button2\":0,\"button3\":1,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":30,\"batt\":100,\"button\":0,\"button2\":0,\"button3\":2,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":31,\"batt\":100,\"button\":0,\"button2\":0,\"button3\":3,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":32,\"batt\":100,\"button\":0,\"button2\":0,\"button3\":9,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":171,\"batt\":100,\"button\":0,\"button2\":0,\"button3\":11,\"button4\":0}"
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":30,\"batt\":100,\"button1\":0,\"button2\":0,\"button3\":2,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":31,\"batt\":100,\"button1\":0,\"button2\":0,\"button3\":3,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":32,\"batt\":100,\"button1\":0,\"button2\":0,\"button3\":9,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":171,\"batt\":100,\"button1\":0,\"button2\":0,\"button3\":11,\"button4\":0}"
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":29,\"batt\":100,\"button1\":0,\"button2\":0,\"button3\":0,\"button4\":1}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":30,\"batt\":100,\"button\":0,\"button2\":0,\"button3\":0,\"button4\":2}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":31,\"batt\":100,\"button\":0,\"button2\":0,\"button3\":0,\"button4\":3}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":32,\"batt\":100,\"button\":0,\"button2\":0,\"button3\":0,\"button4\":9}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":171,\"batt\":100,\"button\":0,\"button2\":0,\"button3\":0,\"button4\":11}"
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":30,\"batt\":100,\"button1\":0,\"button2\":0,\"button3\":0,\"button4\":2}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":31,\"batt\":100,\"button1\":0,\"button2\":0,\"button3\":0,\"button4\":3}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":32,\"batt\":100,\"button1\":0,\"button2\":0,\"button3\":0,\"button4\":9}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":171,\"batt\":100,\"button1\":0,\"button2\":0,\"button3\":0,\"button4\":11}"
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":29,\"batt\":100,\"button1\":1,\"button2\":0,\"button3\":1,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":30,\"batt\":100,\"button\":1,\"button2\":0,\"button3\":2,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":31,\"batt\":100,\"button\":1,\"button2\":0,\"button3\":3,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":32,\"batt\":100,\"button\":1,\"button2\":0,\"button3\":9,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":171,\"batt\":100,\"button\":1,\"button2\":0,\"button3\":11,\"button4\":0}"
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":30,\"batt\":100,\"button1\":1,\"button2\":0,\"button3\":2,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":31,\"batt\":100,\"button1\":1,\"button2\":0,\"button3\":3,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":32,\"batt\":100,\"button1\":1,\"button2\":0,\"button3\":9,\"button4\":0}",
"{\"brand\":\"Shelly\",\"model\":\"ShellyBLU RC Button4\",\"model_id\":\"SBBT-004CUS\",\"type\":\"BTN\",\"acts\":true,\"cont\":true,\"packet\":171,\"batt\":100,\"button1\":1,\"button2\":0,\"button3\":11,\"button4\":0}"
"{\"brand\":\"Xiaomi\",\"model\":\"TH Sensor\",\"model_id\":\"LYWSD03MMC/MJWSD05MMC_PVVX_ENCR\",\"type\":\"THB\",\"encr\":1,\"cipher\":\"ef56583dd420\",\"ctr\":\"23\",\"mic\":\"50fe8e4d\"}",
"{\"brand\":\"Xiaomi\",\"model\":\"TH Sensor\",\"model_id\":\"LYWSD03MMC/MJWSD05MMC_PVVX_DECR\",\"type\":\"THB\",\"tempc\":24.60,\"tempf\":76.28,\"hum\":43.54,\"batt\":100}",
"{\"brand\":\"April Brother\",\"model\":\"N07\",\"model_id\":\"ABN07\",\"type\":\"THB\",\"acts\":true,\"track\":true,\"batt\":100,\"tempc\":24.51,\"tempf\":76.118,\"hum\":47.42,\"packet\":16}",
Expand Down

0 comments on commit fe48891

Please sign in to comment.