usedbytes / picowota

A bootloader for OTA WiFi code upload to a Raspberry Pi Pico W
BSD 3-Clause "New" or "Revised" License
116 stars 21 forks source link

Add WiFi AP mode #1

Closed ghost closed 2 years ago

ghost commented 2 years ago

This adds the choice at build time between the bootloader connecting to an existing AP or firing up its own. The DHCP server code is taken from the Raspberry Pico W access point example: https://github.com/raspberrypi/pico-examples/tree/master/pico_w/access_point/dhcpserver

Please criticize at will!

usedbytes commented 2 years ago

Nice! Thanks for the PR.

I'll have a closer look at the weekend, but looks pretty good with a quick scan.

Would you mind updating the README with the new option (and update the known issues bit)?

ghost commented 2 years ago

There you go! The reason why I didn't do this in the first place is that I wasn't sure whether you'd be interested at all. But glad to know that you are.

For the build variables, even though I'm no CMake pro I did what I can to implement what you wanted in a better way than copy-pasting the same block for every variable.

usedbytes commented 2 years ago

Merged, thank you so much!