Open Saranya-karan opened 3 months ago
try first time MicroPython MQTT TLS ( ssl=True) and can not connect
env: MicroPython v1.23.0 on 2024-06-02; Raspberry Pi Pico W with RP2040 also test: MicroPython v1.24.0-preview.335.gb08ddbba5 on 2024-09-20; Raspberry Pi Pico W with RP2040
from umqtt.simple import MQTTClient # Metadata-Version: 2.1 Name: umqtt.simple Version: 1.4.0
error:
Traceback (most recent call last):
File "
do i need a other /lib/ ?
no, a better code did it:
My code
My error code:
Connecting to wifi... Connection details: ('192.168.x.xx', '255.255.255.0', '192.168.xx.xx', '192.168.xx.xx') dbug-msg: 0x9 b'04:4d:51:54:54:04:02:00:78' dbug-resp: b'' Traceback (most recent call last): File "", line 81, in
File "simple1.py", line 92, in connect
IndexError: bytes index out of range
please someone help me on this..i tried everything