Switch to incoming_packet_length
This requires CircuitPython 6.0.0+
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-ble_lywsd03mmc
.
Read the docs for info on how to use it.