forked from theengs/decoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# BM6 Battery Monitor | ||
|
||
|Model Id|[BM6](https://github.com/theengs/decoder/blob/development/src/devices/BM6_json.h)| | ||
|-|-| | ||
|Brand|GENERIC| | ||
|Model|BM6 Battery Monitor| | ||
|Short Description|Battery capacity| | ||
|Communication|BLE broadcast| | ||
|Frequency|2.4Ghz| | ||
|Power Source|6V-20V| | ||
|Exchanged Data|battery| | ||
|Encrypted|No| | ||
|Presence Tracker|✅| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,6 +113,7 @@ class TheengsDecoder { | |
BPARASITE, | ||
BWBSDOO, | ||
BM2, | ||
BM6, | ||
RDL52832, | ||
ABN03, | ||
ABN07, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
const char* _BM6_json = "{\"brand\":\"GENERIC\",\"model\":\"BM6 Battery Monitor\",\"model_id\":\"BM6\",\"tag\":\"0808\",\"condition\":[\"manufacturerdata\",\"=\",50,\"index\",0,\"4c0002153ba29cd9a42c894856badaf2606ef777\"],\"properties\":{\"batt\":{\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",42,2,false]},\"device\":{\"decoder\":[\"static_value\",\"BM6 Tracker\"]}}}"; | ||
/*R""""( | ||
{ | ||
"brand":"GENERIC", | ||
"model":"BM6 Battery Monitor", | ||
"model_id":"BM6", | ||
"tag":"0808", | ||
"condition":["manufacturerdata", "=", 50, "index", 0, "4c0002153ba29cd9a42c894856badaf2606ef777"], | ||
"properties":{ | ||
"batt":{ | ||
"decoder":["value_from_hex_data", "manufacturerdata", 42, 2, false] | ||
}, | ||
"device":{ | ||
"decoder":["static_value", "BM6 Tracker"] | ||
} | ||
} | ||
})"""";*/ | ||
|
||
const char* _BM6_json_props = "{\"properties\":{\"batt\":{\"unit\":\"%\",\"name\":\"battery\"},\"device\":{\"unit\":\"string\",\"name\":\"tracker device\"}}}"; | ||
/*R""""( | ||
{ | ||
"properties":{ | ||
"batt":{ | ||
"unit":"%", | ||
"name":"battery" | ||
}, | ||
"device":{ | ||
"unit":"string", | ||
"name":"tracker device" | ||
} | ||
} | ||
})"""";*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters