Skip to content

Commit

Permalink
Update test_ble.cpp
Browse files Browse the repository at this point in the history
Update common_props.h
  • Loading branch information
DigiH committed Feb 22, 2022
1 parent 4b20925 commit 8424ba4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
11 changes: 0 additions & 11 deletions src/devices/common_props.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,4 @@ const char* _common_BVTH_props = "{\"properties\":{\"batt\":{\"unit\":\"%\",\"na
}
})"""";*/

const char* _common_weight_props = "{\"properties\":{\"weight\":{\"unit\":\"kg\",\"name\":\"weight\"}}}";
/*R""""(
{
"properties":{
"weight":{
"unit":"kg",
"name":"weight"
}
}
})"""";*/

#endif
4 changes: 2 additions & 2 deletions tests/BLE/test_ble.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ const char* expected_mfg[] = {
const char* expected_uuid[] = {
"{\"brand\":\"Xiaomi\",\"model\":\"Miband\",\"model_id\":\"MiBand\",\"steps\":7842}",
"{\"brand\":\"Xiaomi\",\"model\":\"Mi_Smart_Scale_2\",\"model_id\":\"XMTZC04HM\",\"weighing_mode\":\"person\",\"unit\":\"kg\",\"weight\":61.75}",
"{\"brand\":\"Xiaomi\",\"model\":\"Mi_Smart_Scale_2\",\"model_id\":\"XMTZC05HM\",\"weighing_mode\":\"object\",\"unit\":\"kg\",\"weight\":9.55}",
"{\"brand\":\"Xiaomi\",\"model\":\"Mi_Smart_Scale_2\",\"model_id\":\"XMTZC04HM\",\"weighing_mode\":\"object\",\"unit\":\"kg\",\"weight\":9.55}",
"{\"brand\":\"Xiaomi\",\"model\":\"Mi_Smart_Scale_2\",\"model_id\":\"XMTZC04HM\",\"weighing_mode\":\"person\",\"unit\":\"kg\",\"weight\":61.75}",
"{\"brand\":\"Xiaomi\",\"model\":\"Mi_Smart_Scale_2\",\"model_id\":\"XMTZC05HM\",\"weighing_mode\":\"object\",\"unit\":\"kg\",\"weight\":9.55}",
"{\"brand\":\"Xiaomi\",\"model\":\"Mi_Smart_Scale_2\",\"model_id\":\"XMTZC04HM\",\"weighing_mode\":\"object\",\"unit\":\"kg\",\"weight\":9.55}",
"{\"brand\":\"Xiaomi\",\"model\":\"Mi_Body_Scale_2\",\"model_id\":\"XMTZC05HM\",\"weighing_mode\":\"person\",\"unit\":\"kg\",\"weight\":72.45,\"impedance\":503}",
"{\"brand\":\"Xiaomi\",\"model\":\"Mi_Body_Scale_2\",\"model_id\":\"XMTZC05HM\",\"weighing_mode\":\"person\",\"unit\":\"kg\",\"weight\":72.45}",
"{\"brand\":\"Xiaomi\",\"model\":\"Mi_Body_Scale_2\",\"model_id\":\"XMTZC05HM\",\"weighing_mode\":\"object\",\"unit\":\"kg\",\"weight\":5.1}",
Expand Down

0 comments on commit 8424ba4

Please sign in to comment.