From 1ef8fff99eb1de6fdaca904075a1a5a42924d0bb Mon Sep 17 00:00:00 2001 From: Florian <1technophile@users.noreply.github.com> Date: Sat, 15 Jun 2019 20:54:53 +0200 Subject: [PATCH] Init white and black list to avoid random values enable to prevent the gateway for filtering not black listed sernsor (this bug apply only with HASS autodiscovery) --- ZgatewayBT.ino | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ZgatewayBT.ino b/ZgatewayBT.ino index b15e603..5dfe6ad 100644 --- a/ZgatewayBT.ino +++ b/ZgatewayBT.ino @@ -391,6 +391,8 @@ void MiFloraDiscovery(char * mac){ BLEdevice device; strcpy( device.macAdr, mac ); device.isDisc = true; + device.isWhtL = false; + device.isBlkL = false; devices.push_back(device); } @@ -418,6 +420,8 @@ void MiJiaDiscovery(char * mac){ BLEdevice device; strcpy( device.macAdr, mac ); device.isDisc = true; + device.isWhtL = false; + device.isBlkL = false; devices.push_back(device); } @@ -445,6 +449,8 @@ void LYWSD02Discovery(char * mac){ BLEdevice device; strcpy( device.macAdr, mac ); device.isDisc = true; + device.isWhtL = false; + device.isBlkL = false; devices.push_back(device); } @@ -472,6 +478,8 @@ void CLEARGRASSTRHDiscovery(char * mac){ BLEdevice device; strcpy( device.macAdr, mac ); device.isDisc = true; + device.isWhtL = false; + device.isBlkL = false; devices.push_back(device); }