Adafruit_CircuitPython_MiniMQTT
Adafruit_CircuitPython_MiniMQTT copied to clipboard
Is `_backwards_compatible_sock` flag still needed
Is _backwards_compatible_sock
flag still needed? In MQTT._sock_exact_recv
there is this code:
if not self._backwards_compatible_sock:
# CPython/Socketpool Impl.
...
else: # ESP32SPI Impl.
# This will timeout with socket timeout (not keepalive timeout)
...
This flag is set by:
self._backwards_compatible_sock = not hasattr(sock, "recv_into")
Yet at this point both the ESP32SPI library and WIZNET5k library have recv_into
.
The FONA library is the only one I see that doesn't