mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-28 01:25:49 +03:00
[GH-ISSUE #779] Library Intent #650
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#650
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @monkeytronics on GitHub (Dec 2, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/779
Library Intent
Didn't know where to ask this. Apologies if not correct forum.
Like many who arrive at this repo, I'm attempting to connect my production ESP8266 devices to (unknown) wifi networks. Ideally, I want to run the WiFi commissioning within my own app, not have to redirect users to a third party app or a browser. Could I use this library to perform http like GET and POST operations on a server at a known address (192.168.4.1 is fine), in order to just run the actions in the background, without actually firing up a browser? Or am I grossly misunderstanding the overall intent of this library. In which case, I'd be eager for expert feedback as to what direction they would recommend...
Or should I just directly use WiFi.softAP, with a password, limit number of connections to 1, and use SPIFFS to keep an up to date list of networks. Then run this when the user pushes a button. And very importantly, would this be secure?
Thank you kindly for permitting my potentially naive and perhaps overly general question! But I feel that the research phase of what high level approach to take can save months of development time in the long run.
Hardware
WiFimanager Branch/Release:
Esp8266/Esp32:
Hardware: ESP-12e, esp01, esp25
ESP Core Version: 2.4.0, staging
@tablatronix commented on GitHub (Dec 2, 2018):
While wm does not yet have an api, you would be able to send post to it if you wanted, how do you find it your user still needs to connect to its ap
@monkeytronics commented on GitHub (Dec 2, 2018):
Yeah, totally. My thinking was to connect to the AP within the app, ideally by setting a hotspot ssid that is easy to pick identify. Or if necessary, instructing the user to find the hotspot themselves. Then POST the credentials, followed by a complete command...
body = {"ssid":"myHouse", "pw":"reallySecure", "id":"MyUniqueName"};
body = {"command":"complete"}
Does this seem sensible? Or is there a better way?
@tablatronix commented on GitHub (Dec 2, 2018):
Afaik you can only connect to an ap via os not from an app on most systems
@monkeytronics commented on GitHub (Dec 2, 2018):
I was investigating a cordova hotspot plugin for use with Ionic Apps.
https://github.com/hypery2k/cordova-hotspot-plugin/wiki/Ionic-usage
May or may not work. Worst case, ask the user to go find it.