When I run the code simple.py on a Pi Pico.
I was getting "IndexError: bytes index out of range" after the internet was connected, but the MQTT broker connection failed.
From line 112 of simple.py: assert resp[0] == 0x20 and resp[1] == 0x02
It was saying "in connect" but afterward, it is giving me IndexError: bytes index out of range. Has anyone had this issue before?
What I have to do is unplug the USB and plug it back in multiple times to make it work.