-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tilt Brewing Hydro- Thermometer (#541)
- Loading branch information
Showing
6 changed files
with
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Tilt Brewing Hydro- Thermometer | ||
|
||
|Model Id|[TILT](https://github.com/theengs/decoder/blob/development/src/devices/TILT_json.h)| | ||
|-|-| | ||
|Brand|Tilt| | ||
|Model|Brewing Hydro- Thermometer| | ||
|Short Description|Hydro- Thermometer for beer and cidre brewing| | ||
|Communication|BLE broadcast| | ||
|Frequency|2.4Ghz| | ||
|Power Source|CR123A| | ||
|Exchanged Data|color, temperature, specific gravity| | ||
|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
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 |
---|---|---|
|
@@ -120,6 +120,7 @@ class TheengsDecoder { | |
BWBSDOO, | ||
BM2, | ||
BM6, | ||
TILT, | ||
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,49 @@ | ||
const char* _TILT_json = "{\"brand\":\"Tilt\",\"model\":\"Brewing Hydro- Thermometer\",\"model_id\":\"TILT\",\"tag\":\"0201\",\"condition\":[\"manufacturerdata\",\"=\",50,\"index\",0,\"4c000215a495bb\",\"&\",\"manufacturerdata\",\"index\",16,\"c5b14b44b5121370f02d74de004403f8c5\"],\"properties\":{\"color\":{\"decoder\":[\"string_from_hex_data\",\"manufacturerdata\",14,2],\"lookup\":[\"10\",\"red\",\"20\",\"green\",\"30\",\"black\",\"40\",\"purple\",\"50\",\"orange\",\"60\",\"blue\",\"70\",\"yellow\",\"80\",\"pink\"]},\"tempf\":{\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",40,4,false,true]},\"gravity\":{\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",44,4,false,false],\"post_proc\":[\"/\",1000]}}}"; | ||
|
||
/*R""""( | ||
{ | ||
"brand":"Tilt", | ||
"model":"Brewing Hydro- Thermometer", | ||
"model_id":"TILT", | ||
"tag":"0201", | ||
"condition":["manufacturerdata", "=", 50, "index", 0, "4c000215a495bb", "&", "manufacturerdata", "index", 16, "c5b14b44b5121370f02d74de004403f8c5"], | ||
"properties":{ | ||
"color":{ | ||
"decoder":["string_from_hex_data", "manufacturerdata", 14, 2], | ||
"lookup":["10", "red", | ||
"20", "green", | ||
"30", "black", | ||
"40", "purple", | ||
"50", "orange", | ||
"60", "blue", | ||
"70", "yellow", | ||
"80", "pink"] | ||
}, | ||
"tempf":{ | ||
"decoder":["value_from_hex_data", "manufacturerdata", 40, 4, false, true] | ||
}, | ||
"gravity":{ | ||
"decoder":["value_from_hex_data", "manufacturerdata", 44, 4, false, false], | ||
"post_proc":["/", 1000] | ||
} | ||
} | ||
})"""";*/ | ||
|
||
const char* _TILT_json_props = "{\"properties\":{\"color\":{\"unit\":\"string\",\"name\":\"color\"},\"tempf\":{\"unit\":\"°C\",\"name\":\"temperature\"},\"gravity\":{\"unit\":\"SG\",\"name\":\"specific_gravity\"}}}"; | ||
/*R""""( | ||
{ | ||
"properties":{ | ||
"color":{ | ||
"unit":"string", | ||
"name":"color" | ||
}, | ||
"tempf":{ | ||
"unit":"°C", | ||
"name":"temperature" | ||
}, | ||
"gravity":{ | ||
"unit":"SG", | ||
"name":"specific_gravity" | ||
} | ||
} | ||
})"""";*/ |
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