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)
This commit is contained in:
1 parent
03eba41084
commit
1ef8fff99e
1 file changed
+8
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user