Skip to content

Add pico_w/wifi/access_point_wifi_provisioning/#754

Open
peterharperuk wants to merge 10 commits into
raspberrypi:developfrom
peterharperuk:add_access_point_wifi_provisioning
Open

Add pico_w/wifi/access_point_wifi_provisioning/#754
peterharperuk wants to merge 10 commits into
raspberrypi:developfrom
peterharperuk:add_access_point_wifi_provisioning

Conversation

@peterharperuk

Copy link
Copy Markdown
Contributor

No description provided.

@peterharperuk peterharperuk added this to the 2.2.1 milestone Jun 5, 2026
@peterharperuk peterharperuk force-pushed the add_access_point_wifi_provisioning branch from a181961 to 6716136 Compare June 11, 2026 09:58
@kilograham kilograham requested review from lurch and will-v-pi June 17, 2026 22:39

@will-v-pi will-v-pi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem to handle SSIDs with spaces correctly, because the form submission passes them as + instead, so it tries to connect to "My+Network" instead of "My Network". This might be an issue for other special characters too.

@kilograham kilograham self-requested a review June 18, 2026 19:43

@kilograham kilograham left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

un-approving to allow for will's comment

@peterharperuk

Copy link
Copy Markdown
Contributor Author

This example relies on this change raspberrypi/pico-sdk#3000

@will-v-pi

Copy link
Copy Markdown
Contributor

This example relies on this change raspberrypi/pico-sdk#3000

I'm still seeing the issue with SSIDs with spaces now that change has been merged - do SSIDs with spaces work for you?

@peterharperuk

Copy link
Copy Markdown
Contributor Author

I haven't looked into that problem yet

@peterharperuk

peterharperuk commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

Oops...
SSID AND PASSWORD: My+SSID+Name blah

Louis31423142 and others added 10 commits June 25, 2026 20:21
Fix compile warning.
Use the same password as the other access point example.
Fix captive portal
Only ever use one block
Handle duplicates
Get rid of the submit button.
They seem to be answering requests on the network (oops).
Do this for safety.
Plus some logging fixes
@peterharperuk peterharperuk force-pushed the add_access_point_wifi_provisioning branch from 6716136 to be8ebc3 Compare June 26, 2026 17:23
@peterharperuk

Copy link
Copy Markdown
Contributor Author

I fixed the issue with spaces in ssid names. But while testing it I realised the wifi connection logic wasn't reliable. We can't connect in a callback. I think this is fixed by moving the connecting to main.

I've made other improvements.

If we add this, it means we have another dhcpserver and dnsserver in the pico-examples tree which isn't ideal. I'm wondering whether I should just replace the existing access_point example with this one. Or leave the simpler one as it's easier to understand?

I think I should get rid of the duplicate dhcp / dns servers though as I've fixed another bug like #382 where the dhcp server was handing out addresses on the network.

@will-v-pi will-v-pi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working now for me

I think we should keep the simpler example too, but de-duplication of the dhcp/dns servers would be useful at a later date - preferably not before this next release, as it will probably require some fixups to VS Code to handle copying in the dhcp/dns libraries into the generated examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants