new Ble ver, 2 parts

This commit is contained in:
Mit4el
2023-11-15 21:54:02 +03:00
parent 5f1a9b23e5
commit e5781dc424
92 changed files with 6745 additions and 28 deletions

View File

@@ -0,0 +1,25 @@
const char* _PH10_json = "{\"brand\":\"Polar\",\"model\":\"Heart Rate Sensor\",\"model_id\":\"H10\",\"tag\":\"0b00\",\"condition\":[\"manufacturerdata\",\"=\",12,\"index\",0,\"6b00\"],\"properties\":{\"bpm\":{\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",10,2,false,false]}}}";
/*R""""(
{
"brand":"Polar",
"model":"Heart Rate Sensor",
"model_id":"H10",
"tag":"0b00",
"condition":["manufacturerdata", "=", 12, "index", 0, "6b00"],
"properties":{
"bpm":{
"decoder":["value_from_hex_data", "manufacturerdata", 10, 2, false, false]
}
}
})"""";*/
const char* _PH10_json_props = "{\"properties\":{\"bpm\":{\"unit\":\"bpm\",\"name\":\"heart rate\"}}}";
/*R""""(
{
"properties":{
"bpm":{
"unit":"bpm",
"name":"heart rate"
}
}
})"""";*/