Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gherlein opened this issue Jun 28, 2024 · 4 comments
Open

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

gherlein opened this issue Jun 28, 2024 · 4 comments

Comments

@gherlein
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

soypat commented Jun 30, 2024

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
Copy link
Owner

soypat commented Jun 30, 2024

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

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

No branches or pull requests

2 participants