# Help with "wifi = presto.connect()" on presto

**URL:** <https://forums.pimoroni.com/t/help-with-wifi-presto-connect-on-presto/27088>\
**Category:** Support\
**Created:** [January 14, 2025, 9:48pm UTC](https://forums.pimoroni.com/t/help-with-wifi-presto-connect-on-presto/27088 "2025-01-14T21:48:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![newtonheath](https://avatars.discourse-cdn.com/v4/letter/n/7feea3/32.png) [@newtonheath](https://forums.pimoroni.com/u/newtonheath)\
**Post date:** [January 14, 2025, 9:48pm UTC](https://forums.pimoroni.com/t/help-with-wifi-presto-connect-on-presto/27088/1 "2025-01-14T21:48:21Z")

</div>

I’ve got simple apps running using Mu on my presto (after I read I should act like it’s a pico), for instance, vector\_full\_clock.py is running with no issues.

Now I’m trying to get more complicated, and trying out the word\_clock.py example and getting this:

```auto
malloc self
set fb pointers
m_new_class(ST7701...
launch core1
launched core1
core1 returned
Traceback (most recent call last):
  File "<stdin>", line 54, in <module>
  File "presto.py", line 59, in connect
  File "asyncio/core.py", line 1, in run_until_complete
  File "asyncio/core.py", line 1, in run_until_complete
  File "asyncio/core.py", line 1, in run_until_complete
  File "ezwifi.py", line 65, in connect
  File "ezwifi.py", line 108, in _secrets
ValueError: secrets.py: WIFI_SSID is empty!
>
MicroPython feature/presto-wireless, presto v0.0.6 on 2025-01-08; Presto with RP2350
Type "help()" for more information.

```

I’ve played around with circuit python in the past on adafruit boards, and had access to the devices in my filesystem on macos to add a file like secrets.py, but do not see access to the presto board unless I am flashing.

I’ve added “from secrets import WIFI\_SSID, WIFI\_PASSWORD” to the code, and changed the secrets.py on the local drive where all the code is (but that is not on the device so does not surprise me that it is not working) and still get:

```auto
ValueError: secrets.py: WIFI_SSID is empty!

```

I’m clearly missing something basic but can’t google my way out of it currently. I see examples of people getting other ways of wifi working, and those fail too for me.

Any pointers anyone?

OS: macos  
Editor: Mu  
presto: beta  
firmware: presto-v0.0.6-micropython-with-filesystem.uf2

---

<div class="post-metadata">

**Author:** ![m1cr0py7h0n](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/m1cr0py7h0n/32/11507_2.png) [@m1cr0py7h0n](https://forums.pimoroni.com/u/m1cr0py7h0n)\
**Post date:** [January 15, 2025, 5:39am UTC](https://forums.pimoroni.com/t/help-with-wifi-presto-connect-on-presto/27088/2 "2025-01-15T05:39:58Z")

</div>

…is there actually a file “secrets.py” in the Pico’s file system, providing the properly set variables “WIFI\_…”?  
Usually they are just called “SSID” and “Password”…

You can name it whatever you want, but it needs to be consistent…

Just saw the error reads there is no PW set in the file!  
ValueError: secrets.py: **WIFI\_SSID is empty!**  
Open the file secrets.py and add the PW there…don’t forget to save properly again to the Pico…

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 15, 2025, 8:39am UTC](https://forums.pimoroni.com/t/help-with-wifi-presto-connect-on-presto/27088/3 "2025-01-15T08:39:44Z")

</div>

In Thonny, once you have edited your secrets.py, click file save as, and save it to the Pico.  
Also, in Thonny, click view and select files. That will show you what files are stored on the Pico.

---

<div class="post-metadata">

**Author:** ![newtonheath](https://avatars.discourse-cdn.com/v4/letter/n/7feea3/32.png) [@newtonheath](https://forums.pimoroni.com/u/newtonheath)\
**Post date:** [January 15, 2025, 11:58am UTC](https://forums.pimoroni.com/t/help-with-wifi-presto-connect-on-presto/27088/4 "2025-01-15T11:58:09Z")

</div>

Ok, I switched to using Thonny, and I can see all files on the device as opposed to locally. I changed the secrets, and we are off to the races. Thanks for the pointer to use Thonny, although maybe Mu can do this? Either way, I am all set now. Cheers!

---

<div class="post-metadata">

**Author:** ![m1cr0py7h0n](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/m1cr0py7h0n/32/11507_2.png) [@m1cr0py7h0n](https://forums.pimoroni.com/u/m1cr0py7h0n)\
**Post date:** [January 15, 2025, 12:16pm UTC](https://forums.pimoroni.com/t/help-with-wifi-presto-connect-on-presto/27088/5 "2025-01-15T12:16:03Z")

</div>

I use Thonny for ages - so swift and lightweight…all you need.

For better visuals, I use the dracula theme [1], which brings it more close to Visual Studio Code.  
Can be also downloaded and applied right from within Thonny…

Cheers

[1] [Thonny • Dracula Theme](https://draculatheme.com/thonny)
