-
Notifications
You must be signed in to change notification settings - Fork 511
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
Initial softap-page commit #582
Conversation
Many thanks for this. We think it's an amazing contribution! We've discussed this internally in the team and have made a plan on how to move forward with this. What we'll do is create the necessary APIs in the system firmware to allow the softAP embedded webpages to be included in the application code. This will make it easy to update the pages when the application updates without needing to push a new system firmware release. |
Hi @mebrunet! It's been a while, but we've not forgotten about this. The 0.5.0 release will include the necessary APIs to allow applications to provide their own SoftAP pages. I've linked to the PR where this is implemented. The test app was your softap-page app that you committed here. Would you be interested in making this available as a library so that app devs only need include your library in their project and have this available to them? I can provide assistance in creating the library. If you don't have time for this right now, I'm happy to create the library myself. |
Hi Matt - Oh awesome! Sure, happy to make it into a library. Currently in China on a Also, we've built a cool feature into our firmware / js that favors a local On Fri, Mar 18, 2016 at 8:10 PM, Matthew McGowan notifications@github.com
|
Thank you very much for such a nice feature, this will be very helpful. |
You can compile the app yourself, @BlackAdmin - see PR #906 |
Now that we have this available in application firmware, I'll close this PR. See #906 for the application code to add to your app to include this feature. |
@mebrunet, you mentioned having built the capability to favor local network to cloud function calls. Do you have that code available somewhere where we can get access? Thanks. |
@joliva - yes, we wrote an ultra-light HTTP server that accepts function calls directly over the local network, then we append a hash to every command so the device only acts on the first command it receives (whether local or cloud). I've been meaning to tear it out into something open source, but haven't had the time yet. I'll see if I can get around to it next week. |
@mebrunet, that would be great. I didn't quite follow how the hash is being used. |
@mebrunet , Everything works perfectly for softAP setup page. I am having just a single question out of curiosity. I've seen your GitHub link here softap-setup-page |
SoftAP connection page
Description
These changes add a SoftAP setup page to the Photon's firmware (i.e. a self-contained, "app-less" way to connect the Photon to the WiFi). When put into Listening Mode, the Photon serves a simple html/javascript page that walks the user through connecting the device to their WiFi. It assumes the device has already been claimed to a Particle account (as would often be the case if re-distributing the Photon as the heart of an IoT product).
Screenshot of SoftAP Page:
Approach
This was done by:
This was all accomplished by using the build tools posted at this repo.