[GH-ISSUE #779] Library Intent #650

Open
opened 2026-02-28 01:26:24 +03:00 by kerem · 4 comments
Owner

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:

  • [x ] Master
  • Development

Esp8266/Esp32:

  • [ x] ESP8266
  • ESP32

Hardware: ESP-12e, esp01, esp25

  • ESP01
  • [x ] ESP12 E/F/S (nodemcu, wemos, feather)
  • Other

ESP Core Version: 2.4.0, staging

  • [x ] 2.3.0
  • 2.4.0
  • staging (master/dev)
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:** - [x ] Master - [ ] Development **Esp8266/Esp32:** - [ x] ESP8266 - [ ] ESP32 **Hardware: ESP-12e, esp01, esp25** - [ ] ESP01 - [x ] ESP12 E/F/S (nodemcu, wemos, feather) - [ ] Other **ESP Core Version: 2.4.0, staging** - [x ] 2.3.0 - [ ] 2.4.0 - [ ] staging (master/dev)
Author
Owner

@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

<!-- gh-comment-id:443534061 --> @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
Author
Owner

@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?

<!-- gh-comment-id:443535279 --> @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?
Author
Owner

@tablatronix commented on GitHub (Dec 2, 2018):

Afaik you can only connect to an ap via os not from an app on most systems

<!-- gh-comment-id:443535411 --> @tablatronix commented on GitHub (Dec 2, 2018): Afaik you can only connect to an ap via os not from an app on most systems
Author
Owner

@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.

<!-- gh-comment-id:443535582 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#650
No description provided.