-
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.
Showing
7 changed files
with
63 additions
and
2 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 @@ | ||
# WS08 ThermoBeacon | ||
|
||
|Model Id|[WS08](https://github.com/theengs/decoder/blob/development/src/devices/WS08_json.h)| | ||
|-|-| | ||
|Brand|ThermoBeacon| | ||
|Model|WS08| | ||
|Short Description|Beacon, temperature and humidity sensor with LCD and magnet| | ||
|Communication|BLE broadcast| | ||
|Frequency|2.4Ghz| | ||
|Power source|CR2477| | ||
|Exchanged data|temperature, humidity, volt| | ||
|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 |
---|---|---|
|
@@ -69,6 +69,7 @@ class TheengsDecoder { | |
CGPR1, | ||
IBEACON, | ||
WS02, | ||
WS08, | ||
H5075, | ||
H5072, | ||
H5102, | ||
|
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
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,42 @@ | ||
const char* _WS08_json = "{\"brand\":\"ThermoBeacon\",\"model\":\"WS08\",\"model_id\":\"WS08\",\"condition\":[\"manufacturerdata\",\">=\",40,\"index\",0,\"11000000\"],\"properties\":{\"tempc\":{\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",24,4,true],\"post_proc\":[\"/\",16]},\"hum\":{\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",28,4,true],\"post_proc\":[\"/\",16]},\"volt\":{\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",20,4,true],\"post_proc\":[\"/\",1000]}}}"; | ||
|
||
/*R""""( | ||
{ | ||
"brand":"ThermoBeacon", | ||
"model":"WS08", | ||
"model_id":"WS08", | ||
"condition":["manufacturerdata", ">=", 40, "index", 0, "11000000"], | ||
"properties":{ | ||
"tempc":{ | ||
"decoder":["value_from_hex_data", "manufacturerdata", 24, 4, true], | ||
"post_proc":["/", 16] | ||
}, | ||
"hum":{ | ||
"decoder":["value_from_hex_data", "manufacturerdata", 28, 4, true], | ||
"post_proc":["/", 16] | ||
}, | ||
"volt":{ | ||
"decoder":["value_from_hex_data", "manufacturerdata", 20, 4, true], | ||
"post_proc":["/", 1000] | ||
} | ||
} | ||
})"""";*/ | ||
|
||
const char* _WS08_json_props = "{\"properties\":{\"volt\":{\"unit\":\"V\",\"name\":\"voltage\"},\"tempc\":{\"unit\":\"°C\",\"name\":\"temperature\"},\"hum\":{\"unit\":\"%\",\"name\":\"humidity\"}}}"; | ||
/*R""""( | ||
{ | ||
"properties":{ | ||
"volt":{ | ||
"unit":"V", | ||
"name":"voltage" | ||
}, | ||
"tempc":{ | ||
"unit":"°C", | ||
"name":"temperature" | ||
}, | ||
"hum":{ | ||
"unit":"%", | ||
"name":"humidity" | ||
} | ||
} | ||
})"""";*/ |
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