← index #16792Issue #15420
Off-topic · high · value 2.439
QUERY · ISSUE

RP2 2040 MQTT TLS

openby MyRaspberryopened 2025-02-21updated 2025-03-29
bugport-rp2needs-info

Port, board and/or hardware

RPI PICO W

MicroPython version

after MP 1.23 upgrade to newer version
HIVEMQ TLS login fail
also last test
RPI_PICO_W-20250219-v1.25.0-preview.304.g1034b1755.uf2

fallback RPI_PICO_W-20240602-v1.23.0.uf2 works

use lib/
umqtt.simple.py 1.5.0

Reproduction

import ssl
context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
context.verify_mode = ssl.CERT_NONE

mqtt_client = MQTTClient(
client_id=b"somethingreallyrandomanduniquePICOW",
server=secrets.RMQTTBROKER ,
port=0,
user=secrets.RMQTTUSER,
password=secrets.RMQTTPW,
keepalive=7200,
ssl=context,
)

mqtt_client.connect(clean_session=True, timeout=None) # fails with newer MP versions

Expected behaviour

login to HIVEMQ TLS account

works with MP 1.23.0
but not with newer versions

Observed behaviour

File "/lib/umqtt/simple.py", line 66, in connect
OSError: -2

Additional Information

No, I've provided everything above.

Code of Conduct

Yes, I agree

CANDIDATE · ISSUE

BLE with multiple periperals (OSError: [Errno 107] ENOTCONN)

openby BaseCrusheropened 2024-07-07updated 2024-07-08
bugport-rp2

Port, board and/or hardware

Raspberry Pi Pico W

MicroPython version

MicroPython v1.23.0 on 2024-06-02; Raspberry Pi Pico W with RP2040

Reproduction

  1. Connect to a BLE peripheral using BLE.gap_connect. This works flawlessly
  2. Connect to a second BLE peripheral using BLE.gap_connect, while still connected to the first peripheral. (Error)

Expected behaviour

Connections to both peripherals is possible without any errors

Observed behaviour

OSError: [Errno 107] ENOTCONN

Additional Information

No, I've provided everything above.

Code of Conduct

Yes, I agree

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied