Skip to content

fix datalog decoder bug #4

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion LHT65N/LHT65N Chirpstack 4.0 decoder.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function getMyDate(str){

function Decode(fPort, bytes, variables) {
var Ext= bytes[6]&0x0F;
var poll_message_status=((bytes[6]>>7)&0x01);
var poll_message_status=((bytes[6]>>6)&0x01);
var Connect=(bytes[6]&0x80)>>7;
var decode = {};
switch (poll_message_status) {
Expand Down
2 changes: 1 addition & 1 deletion LHT65N/LHT65N-TTN_decoder.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function getMyDate(str){

function Decoder(bytes, port) {
var Ext= bytes[6]&0x0F;
var poll_message_status=((bytes[6]>>7)&0x01);
var poll_message_status=((bytes[6]>>6)&0x01);
var Connect=(bytes[6]&0x80)>>7;
var decode = {};
if((port==3)&(bytes[2]==(0x01))|(bytes[2]==(0x02))){
Expand Down
2 changes: 1 addition & 1 deletion LHT65N/LHT65N-chirpstack decoder.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function getMyDate(str){

function Decode(fPort, bytes, variables) {
var Ext= bytes[6]&0x0F;
var poll_message_status=((bytes[6]>>7)&0x01);
var poll_message_status=((bytes[6]>>6)&0x01);
var Connect=(bytes[6]&0x80)>>7;
var decode = {};
switch (poll_message_status) {
Expand Down
2 changes: 1 addition & 1 deletion LHT65N/dragino_lht65nAWS Decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def dict_from_payload(base64_input: str, fport: int = None):
}
else:
Ext = decoded[6] & 0x0F
poll_message_status=((decoded[6]>>7) & 0x01)
poll_message_status=((decoded[6]>>6) & 0x01)
Connect=(decoded[6] & 0x80)>>7
if poll_message_status == 0:
if Ext == 9:
Expand Down