Skip to content

Commit

Permalink
MLR003 REV2.4: New Temperature_Drop_Detection Bit (#831)
Browse files Browse the repository at this point in the history
* MLR003 REV2.4: New Temperature_Drop_Detection Bit

* Update mlr003-codec.yaml

---------

Co-authored-by: Jaime Trinidad <[email protected]>
  • Loading branch information
ullriti and Jaime-Trinidad authored Nov 14, 2024
1 parent e132c3a commit 7eba612
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
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

0 comments on commit 7eba612

Please sign in to comment.