Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MLR003 REV2.4: New Temperature_Drop_Detection Bit #831

Merged
merged 5 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions vendor/micropelt/mlr003-codec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ uplinkDecoder:
Flow_Temperature: 106.00
Ambient_Sensor_Raw: 60.75
Ambient_Temperature: 40.25
Temperature_Drop_Detection: 0
Energy_Storage: 0
Harvesting_Active: 1
Ambient_Sensor_Failure: 0
Expand Down Expand Up @@ -42,6 +43,7 @@ uplinkDecoder:
Flow_Temperature: 13.50
Ambient_Sensor_Raw: 15.00
Ambient_Temperature: 15.00
Temperature_Drop_Detection: 0
Energy_Storage: 0
Harvesting_Active: 0
Ambient_Sensor_Failure: 0
Expand Down Expand Up @@ -69,6 +71,7 @@ uplinkDecoder:
Flow_Temperature: 33
Ambient_Sensor_Raw: 28.75
Ambient_Temperature: 24
Temperature_Drop_Detection: 0
Energy_Storage: 0
Harvesting_Active: 1
Ambient_Sensor_Failure: 0
Expand All @@ -94,6 +97,7 @@ uplinkDecoder:
Flow_Temperature: 22
Ambient_Sensor_Raw: 19.75
Ambient_Temperature: 19.25
Temperature_Drop_Detection: 0
Energy_Storage: 0
Harvesting_Active: 0
Ambient_Sensor_Failure: 0
Expand Down
1 change: 1 addition & 0 deletions vendor/micropelt/mlr003.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ function decodeUplink(input) {
Flow_Temperature: input.bytes[2]*0.5,
Ambient_Sensor_Raw: input.bytes[3]*0.25,
Ambient_Temperature: input.bytes[4]*0.25,
Temperature_Drop_Detection: input.bytes[5]>>7 & 0x01,
Energy_Storage: input.bytes[5]>>6 & 0x01,
Harvesting_Active: input.bytes[5]>>5 & 0x01,
Ambient_Sensor_Failure: input.bytes[5]>>4 & 0x01,
Expand Down
Loading