Skip to content

Commit 7482b34

Browse files
committed
BLE gateway HM10 Correct token offset for service data
1 parent 647df12 commit 7482b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/ZgatewayBT.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ String returnedString = "";
499499
unsigned long timebt = 0;
500500

501501
// this struct define which parts of the hexadecimal chain we extract and what to do with these parts
502-
struct decompose d[6] = {{"mac", 16, 12, true}, {"typ", 28, 2, false}, {"rsi", 30, 2, false}, {"rdl", 32, 2, false}, {"sty", 44, 4, true}, {"rda", 56, 60, false}};
502+
struct decompose d[6] = {{"mac", 16, 12, true}, {"typ", 28, 2, false}, {"rsi", 30, 2, false}, {"rdl", 32, 2, false}, {"sty", 44, 4, true}, {"rda", 48, 60, false}};
503503

504504
void setupBT() {
505505
BLEinterval = TimeBtw_Read;

0 commit comments

Comments
 (0)