Open gherlein opened 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!
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?
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.
Worth mentioning: an example of AP usage would be very welcome in this repo!
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?