diff --git a/adafruit_minimqtt/adafruit_minimqtt.py b/adafruit_minimqtt/adafruit_minimqtt.py index d654fd7..6387678 100644 --- a/adafruit_minimqtt/adafruit_minimqtt.py +++ b/adafruit_minimqtt/adafruit_minimqtt.py @@ -896,7 +896,7 @@ def _wait_for_msg(self, timeout=0.1): # Block while we parse the rest of the response self._sock.settimeout(timeout) - if res in [None, b""]: + if res in [None, b"", bytearray(b'\x00')]: # If we get here, it means that there is nothing to be received return None if res[0] == MQTT_PINGRESP: