Closed
Description
When the length of the message and topic is longer than 125, an IndexError is thrown on the pkt bytearray.
test code:
for i in range(500): print("publishing string of length {}".format(i)) client.publish("testing/message", "a" * i)
result:
Published to testing/message with PID 0 6351.95: DEBUG - Sending PUBACK publishing string of length 111 Traceback (most recent call last): File "code.py", line 121, in <module> File "adafruit_minimqtt.py", line 424, in publish IndexError: bytearray index out of range
This looks like it could be similar to issue #3 in that the payload is unintentionally limited to 127 characters in size.