-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-Authored-By: Meinrad Jean-Richard <[email protected]>
- Loading branch information
1 parent
fe2f7ce
commit 85e5cf0
Showing
6 changed files
with
92 additions
and
0 deletions.
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,12 @@ | ||
# rbaron b-parasite | ||
|
||
|Model Id|[BPv1.0-1.2](https://github.com/theengs/decoder/blob/development/src/devices/BPARASITE_json.h)| | ||
|-|-| | ||
|Brand|rbaron| | ||
|Model|b-parasite| | ||
|Short Description|Open hardware and open source soil moisture and ambient temperature/humidity/light sensor https://github.com/rbaron/b-parasite| | ||
|Communication|BLE broadcast| | ||
|Frequency|2.4Ghz| | ||
|Power source|CR2032| | ||
|Exchanged data|moisture, temperature, humidity, luminance (v1.1.0+), voltage| | ||
|Encrypted|No| |
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 |
---|---|---|
|
@@ -87,6 +87,7 @@ class TheengsDecoder { | |
MS_CDP, | ||
GAEN, | ||
HHCCPOT002, | ||
BPARASITE, | ||
BLE_ID_MAX | ||
}; | ||
|
||
|
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,64 @@ | ||
const char* _BPARASITE_json = "{\"brand\":\"rbaron\",\"model\":\"b-parasite\",\"model_id\":\"BPv1.0-1.2\",\"condition\":[\"servicedata\",\">=\",32,\"index\",0,\"1\",\"|\",\"servicedata\",\">=\",32,\"index\",0,\"2\",\"&\",\"uuid\",\"index\",0,\"181a\"],\"properties\":{\"tempc\":{\"condition\":[\"servicedata\",0,\"1\"],\"decoder\":[\"value_from_hex_data\",\"servicedata\",8,4,false,true],\"post_proc\":[\"/\",1000]},\"_tempc\":{\"condition\":[\"servicedata\",0,\"2\"],\"decoder\":[\"value_from_hex_data\",\"servicedata\",8,4,false,true],\"post_proc\":[\"/\",100]},\"hum\":{\"decoder\":[\"value_from_hex_data\",\"servicedata\",12,4,false,false],\"post_proc\":[\"/\",655.35]},\"moi\":{\"decoder\":[\"value_from_hex_data\",\"servicedata\",16,4,false,false],\"post_proc\":[\"/\",655.35]},\"lux\":{\"condition\":[\"servicedata\",1,\"bit\",0,1],\"decoder\":[\"value_from_hex_data\",\"servicedata\",32,4,false,false]},\"volt\":{\"decoder\":[\"value_from_hex_data\",\"servicedata\",4,4,false,false],\"post_proc\":[\"/\",1000]}}}"; | ||
|
||
/* R""""( | ||
{ | ||
"brand":"rbaron", | ||
"model":"b-parasite", | ||
"model_id":"BPv1.0-1.2", | ||
"condition":["servicedata", ">=", 32, "index", 0, "1", "|", "servicedata", ">=", 32, "index", 0, "2", "&", "uuid", "index", 0, "181a"], | ||
"properties":{ | ||
"tempc":{ | ||
"condition":["servicedata", 0, "1"], | ||
"decoder":["value_from_hex_data", "servicedata", 8, 4, false, true], | ||
"post_proc":["/", 1000] | ||
}, | ||
"_tempc":{ | ||
"condition":["servicedata", 0, "2"], | ||
"decoder":["value_from_hex_data", "servicedata", 8, 4, false, true], | ||
"post_proc":["/", 100] | ||
}, | ||
"hum":{ | ||
"decoder":["value_from_hex_data", "servicedata", 12, 4, false, false], | ||
"post_proc":["/", 655.35] | ||
}, | ||
"moi":{ | ||
"decoder":["value_from_hex_data", "servicedata", 16, 4, false, false], | ||
"post_proc":["/", 655.35] | ||
}, | ||
"lux":{ | ||
"condition":["servicedata", 1, "bit", 0, 1], | ||
"decoder":["value_from_hex_data", "servicedata", 32, 4, false, false] | ||
}, | ||
"volt":{ | ||
"decoder":["value_from_hex_data", "servicedata", 4, 4, false, false], | ||
"post_proc":["/", 1000] | ||
} | ||
} | ||
})"""";*/ | ||
|
||
const char* _BPARASITE_json_props = "{\"properties\":{\"tempc\":{\"unit\":\"°C\",\"name\":\"temperature\"},\"hum\":{\"unit\":\"%\",\"name\":\"humidity\"},\"moi\":{\"unit\":\"%\",\"name\":\"moisture\"},\"lux\":{\"unit\":\"lx\",\"name\":\"illuminance\"},\"volt\":{\"unit\":\"V\",\"name\":\"voltage\"}}}"; | ||
/*R""""( | ||
{ | ||
"properties":{ | ||
"tempc":{ | ||
"unit":"°C", | ||
"name":"temperature" | ||
}, | ||
"hum":{ | ||
"unit":"%", | ||
"name":"humidity" | ||
}, | ||
"moi":{ | ||
"unit":"%", | ||
"name":"moisture" | ||
}, | ||
"lux":{ | ||
"unit":"lx", | ||
"name":"illuminance" | ||
}, | ||
"volt":{ | ||
"unit":"V", | ||
"name":"voltage" | ||
} | ||
} | ||
})"""";*/ |
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