soypat / cyw43439

Driver for the Wifi+bluetooth integrated circuit on the pico.
MIT License
107 stars 6 forks source link

is StartAP(...) something I can use use yet? #51

Open gherlein opened 2 months ago

gherlein commented 2 months ago

I tried it, and got a basic AP to start and accept the password. What I don't grok - and don't see an example for - is how to set it's IP address. Is there an example I can't find, or should I just plow through and see if I can figure it out?

gherlein commented 2 months ago

By the way, your work is amazing. Best and cleanest I've seen. Love it! Plan to heavily use it and contribute if I can!

gherlein commented 2 months ago

OK, I need some help. I can't figure this out... perhaps needed things are not implemented yet. I put my fledgling work at https://github.com/gherlein/picoap/tree/main

I think that the bits to link seq to this code in AP mode are not done yet... and need to be figured out from the C example code. Am I in the right direction?

soypat commented 2 months ago

Hey Gherlein, glad this is being of help!

I myself have never used the AP functionality. @scottfeldman helped port it from Rust after we failed to get the C version ported correctly. The reference code is here: https://github.com/embassy-rs/embassy/blob/bd0243d12f621b977ce767c11325acb95c7b658a/cyw43/src/control.rs#L327-L337

Your best bet is to search out how others are using the rust version (there may be an example in embassy-rs) or asking on their communication channel, which is on matrix (see their README). In the worst case scenario I'd check out the C version to see if you find an example of what you are looking for and then finding a way to get the same functionality with our API.

soypat commented 2 months ago

Worth mentioning: an example of AP usage would be very welcome in this repo!