-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
added support for wifi AP mode to class Wifi #65
Conversation
@squonk11 Could you please enable changes from maintainers on your PR? |
It is already enabled. |
I think a test project for AP-mode is in order before merging. A static web page served by the HTTP server will do. |
Weird, now I could push to your PR. Anyhow, have a look. |
I just checked your c++ifying - for me it is very interesting to see how this has been done - thank you for that. And of course: these changes are o.k. for me. |
Happy to teach :)
Ok, I'll let you have a go at it. I suggest you copy the http_server example and remove things you don't need. Just remember to rename the files and namespace - the folder name must be the same as the namespace the code is in. |
Using the http_server example and removing everything not urgently necessary was also my plan. Here I also wanted to remove the |
If you update your branch from upstream, you can now pass |
new file: test/http_server_ap_test/http_server_ap_test.cpp new file: test/http_server_ap_test/http_server_ap_test.h new file: test/http_server_ap_test/wifi_creds.h
now I pushed the test "http_server_ap_test". I had some trouble cross-resolving between local, remote and upstream. I hope now it is o.k. |
I made some adjustments:
It works nicely :) I can accept this PR as-is, do you have any additional changed you want to make? |
currently I don't have any further changes. |
Hm, that's odd, especially since I've reworked the build system according to the one IDF uses. You should be able to open the root folder/root CMakeList as a project. Anyway, I'll merge this now. Thank you for your contribution. |
Now I understood your question concerning additional changes. I thought this question was related to changes on the support for AP - but probably it was related to additional changes/additions to the Smooth repository?
|
It was mainly about the AP-changes. Please continue discussions re. other items in separate threads. |
added support for wifi AP mode to class Wifi.
In order to use the AP mode the command wifi.connect_to_ap(); must be replaced by wifi.start_softap();. As default only one client is allowed to connect to the AP. If more clients should be allowed wifi.set_softap_max_connections(x); can be used before starting the AP.