anvil-works / anvil-pico

MicroPython modules for using Anvil on the Pico W
https://anvil.works/pico
MIT License
16 stars 4 forks source link

Could not connect device using the client uplink key #1

Open edsase opened 2 years ago

edsase commented 2 years ago

First of all, thank you so much for this awesome library. It works well when I use the server uplink key but produces this error with the client uplink key: Traceback (most recent call last): File "anvil/pico.py", line 154, in _connect_async File "anvil/pico.py", line 112, in _connect File "async_websocket_client.py", line 94, in handshake OSError: [Errno 12] ENOMEM Connecting to Anvil... Exception in uplink reconnection loop: Was the library designed to work only with the server uplink key which is indeed what is shown in the documentation example?

patate1684 commented 2 years ago

you need to use server uplink key not client key see here : https://anvil.works/docs/uplink/uplink_security