Pico W: OSError: -1
when using SSL (MQTTClient(..., ssl=True)
)
#10182
Unanswered
sgbaird
asked this question in
Libraries & Drivers
Replies: 1 comment 1 reply
-
@sgbaird ....
keepalive=30
....
while True:
client.check_msg()
client.ping()
time.sleep(0.5) This should fix it 👀 ... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The following works without issue (for context, see https://github.com/sparks-baird/self-driving-lab-demo/blob/main/src/public_mqtt_sdl_demo/main.py):
Setting
ssl=True
per the comment in #9259 (reply in thread) causes an error after a short period of time (less than a minute I think, I verified that it's not during the first call towait_msg
):Here is how
wait_msg
is defined (note added on line 183):I also tried adding
sleep(0.1)
in the while loop, but got the same error.Related:
@Carglglz
Beta Was this translation helpful? Give feedback.
All reactions