-
Notifications
You must be signed in to change notification settings - Fork 49
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
51 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 @@ | ||
# Oria/Brifit/SigmaWit/SensorPro T301 | ||
|
||
|Model Id|[T301](https://github.com/theengs/decoder/blob/development/src/devices/T301_json.h)| | ||
|-|-| | ||
|Brand|Oria/Brifit/SigmaWit/SensorPro| | ||
|Model|TH sensor| | ||
|Short Description|Temperature and humidity sensor| | ||
|Communication|BLE broadcast| | ||
|Frequency|2.4Ghz| | ||
|Power source|2 CR2032| | ||
|Exchanged data|temperature, humidity, battery| | ||
|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 |
---|---|---|
|
@@ -97,6 +97,7 @@ class TheengsDecoder { | |
ABTEMP, | ||
AMPHIRO, | ||
TP357, | ||
T301, | ||
IBEACON, | ||
SERVICE_DATA, | ||
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,26 @@ | ||
#include "common_props.h" | ||
|
||
const char* _T301_json = "{\"brand\":\"Oria\",\"model\":\"TH Sensor\",\"model_id\":\"T301\",\"cidc\":false,\"condition\":[\"name\",\"index\",0,\"T301\",\"&\",\"manufacturerdata\",\"=\",38],\"properties\":{\"tempc\":{\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",24,4,false,true],\"post_proc\":[\"/\",100]},\"hum\":{\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",28,4,false,false],\"post_proc\":[\"/\",100]},\"batt\":{\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",32,2]}}}"; | ||
/*R""""( | ||
{ | ||
"brand":"Oria", | ||
"model":"TH Sensor", | ||
"model_id":"T301", | ||
"cidc":false, | ||
"condition":["name", "index", 0, "T301", "&","manufacturerdata", "=", 38], | ||
"properties":{ | ||
"tempc":{ | ||
"decoder":["value_from_hex_data", "manufacturerdata", 24, 4, false, true], | ||
"post_proc":["/", 100] | ||
}, | ||
"hum":{ | ||
"decoder":["value_from_hex_data", "manufacturerdata", 28, 4, false, false], | ||
"post_proc":["/", 100] | ||
}, | ||
"batt":{ | ||
"decoder":["value_from_hex_data", "manufacturerdata", 32, 2] | ||
} | ||
} | ||
})"""";*/ | ||
|
||
const char* _T301_json_props = _common_BTH_props; |
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