From 7482b34fa2bfd10d0a78831e036234ac3308f1d6 Mon Sep 17 00:00:00 2001 From: Florian <1technophile@users.noreply.github.com> Date: Sun, 21 Jun 2020 14:39:17 -0500 Subject: [PATCH] BLE gateway HM10 Correct token offset for service data --- main/ZgatewayBT.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/ZgatewayBT.ino b/main/ZgatewayBT.ino index 5a7105e..2203570 100644 --- a/main/ZgatewayBT.ino +++ b/main/ZgatewayBT.ino @@ -499,7 +499,7 @@ String returnedString = ""; unsigned long timebt = 0; // this struct define which parts of the hexadecimal chain we extract and what to do with these parts -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}}; +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}}; void setupBT() { BLEinterval = TimeBtw_Read;