For this question not really sure where to look at, or which keywords to search but I would think something like this has been asked before.
In my Pico W projects there has to exist this construct in order to connect with the internet:
Never been really happy with this hardcoding of data since it is not flexible and it might easily (?) be reverse engineered from the .elf or .uf2 for whatever purpose of ill-intend. If I want to use this particular Pico W in other networks, I have to compile the source code again with new ssid/pass, obviously, and SSID and password must never change.
So I would envision something like connecting my Pico W to USB, it gets powered, it will access a "ssid.txt" file in a "/temp" folder (or whatever) on a PC or Raspberry Pi containing the data posted above, grabs it, then subsequently it either connects or doesn't connect to the WiFi (in case data is false and falling back on default data isn't successful either), indicating this to the User by flashing the on-board LED in a certain pattern.
I never worked with the USB port in my projects barring the occasional flashing of an .uf2 file, yet there are examples given as to accessing the USB port in the Raspberry Pi repos, so I do not think my use case is far fetched.
But some hints would be appreciated whether something like this is possible or makes sense at all, and if yes, which of the given examples would be a good starting point for creating a respective source code.
Thx
In my Pico W projects there has to exist this construct in order to connect with the internet:
Code:
(...)int connect(){ char ssid[] = "WLAN-123"; char pass[] = "12345"; uint32_t country = CYW43_COUNTRY_GERMANY; uint32_t auth = CYW43_AUTH_WPA2_MIXED_PSK; return setup(country, ssid, pass, auth, "Pico W", NULL, NULL, NULL);}(...)So I would envision something like connecting my Pico W to USB, it gets powered, it will access a "ssid.txt" file in a "/temp" folder (or whatever) on a PC or Raspberry Pi containing the data posted above, grabs it, then subsequently it either connects or doesn't connect to the WiFi (in case data is false and falling back on default data isn't successful either), indicating this to the User by flashing the on-board LED in a certain pattern.
I never worked with the USB port in my projects barring the occasional flashing of an .uf2 file, yet there are examples given as to accessing the USB port in the Raspberry Pi repos, so I do not think my use case is far fetched.
But some hints would be appreciated whether something like this is possible or makes sense at all, and if yes, which of the given examples would be a good starting point for creating a respective source code.
Thx
Statistics: Posted by FlorianJW — Wed Feb 04, 2026 7:19 am