mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #429] is there any way to Integrate beginSmartConfig with this library? #363
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#363
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 @bkrajendra on GitHub (Sep 25, 2017).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/429
is there any way to Integrate beginSmartConfig with this library?
@tablatronix commented on GitHub (Sep 25, 2017):
Can you link to some reference for me?
@bkrajendra commented on GitHub (Sep 25, 2017):
Sorry for incomplete info.
Expressif has something called ESPtouch for ESP8266 and ESP32
http://espressif.com/en/products/software/esp-touch/overview
Its very easy to configure ESP8266 or ESP32 through it.
There is simple Android Java Library provided by expressif which is very easy to use from Android App or cordova library. With this there is no need of WiFi Manager as such, But as it has its limitation we can keep both WiFi manager captive portal and SmartConfig side by side.
It should be made available on press of some button or on some event.
If it fails we can go for captive portal.
I've modified WiFimanager code for it but it does not looks like standard solution.
Its better if its implemented by someone who already known WiFiManager better.
@tablatronix commented on GitHub (Sep 25, 2017):
Yeah ok this is the thing that sniffs data and pairs the ap using that credential, I do not have android to test this. Does it work well, i thought it was flaky.
@bkrajendra commented on GitHub (Sep 27, 2017):
Works Excellent.
Its working fine for me. I tested it on ESP8266 and ESP32. Even tested it with multiple devices to send SmartConfig packets at a time.... it works.
Looks ok. People are talking about its issue with not compatible with 5GHz wifi channel.
But its good to have it as option 1 and if does not work we can go for captive portal.
@tablatronix commented on GitHub (Sep 27, 2017):
Ahh I see ill look at the examples
@bkrajendra commented on GitHub (Sep 27, 2017):
I've created this cordova plugin.
Locally i've tested it working fine. Git version not tested yet.
@tablatronix commented on GitHub (Sep 27, 2017):
There seems to be a few espressif IOS apps , but they do not appear to work.
And my esp keeps throwing exceptions running this
@bkrajendra commented on GitHub (Sep 28, 2017):
Try this. Actually its just single line but i tried to make it more useful for me.
Change include header file for ESP8266 wifi.
@tablatronix commented on GitHub (Sep 28, 2017):
if (WiFi.SSID()) {is wrong
WiFi.SSID() != NULLshould work for empty config or erased configAlso you must enter STA mode before starting smart config
WiFi.mode(WIFI_STA);Those changes should fix that sketch
But i still get wdt resets everytime after it runs for a bit
@tablatronix commented on GitHub (Sep 28, 2017):
Does anyone know how airkiss works, specifically with wechat? I thought a simple ap qrcode would work , but it must require something special.
@bkrajendra commented on GitHub (Sep 28, 2017):
Yes ! you are right it should be WiFi.mode(WIFI_STA);.
Thanks for suggestion (WiFi.SSID() != NULL) .. I'll include it in my code.
Its sad that you are getting error. I'm using ESP-12F - 4MB flash module.
But still it should work as its not hardware dependant. Might be you should check which SDK you are using as it only support latest SDK. Try getting latest from https://github.com/esp8266/Arduino
@tablatronix commented on GitHub (Sep 28, 2017):
Its not me,
https://github.com/esp8266/Arduino/issues/3494
@tablatronix commented on GitHub (Sep 28, 2017):
Ok i tried this at home and it works, it must be only suitable for soho networks, or it just takes a really long time and the app times out or the esp crashes before it can work in environments with lots of APs, I have over 30 in my testing location,
@bkrajendra commented on GitHub (Sep 29, 2017):
I don't know how airkiss works. But it looks like esp has it already as there is a lib file in SDK called libairkiss.a. Or might be smartconfig is using similar library.
@tablatronix commented on GitHub (Sep 29, 2017):
I think it is essentially the same thing, but airkiss is built into wechat, but the docs are only in chinese, and i have no idea how you initialize the pairing ( using wechat that is )
@tablatronix commented on GitHub (Sep 29, 2017):
Do you have any ideas how wm would incorporate this ?
Since it only runs in STA mode, it cannot work along side WM, so not sure how this could even be beneficial unless adding the code and letting user switch it on, but then why even include it at all
@dneykov commented on GitHub (Nov 9, 2019):
Hello,
Any news on this? Is it possible to use smart config with WiFiManager? I would like to use it in order to configure my ESP8266 using iOS with ESP-Touch protocol.
Thanks.
@tablatronix commented on GitHub (Nov 9, 2019):
I can look at it again, but I don't see a reason to incorporate it, when you can just do it in code as it cannot work with wm ap mode..
@bkrajendra commented on GitHub (Nov 10, 2019):
Actually wm and SmartConfig are little different ideas.
While wm gives you complete config portal to configure your device through ap - just like a router, smartconfig provides different approach for device configuration - something like zeroconfig, where you dont need any config portal on device.
There is one big advantage with using wm, which makes it possible to save additional parameters by providing a config portal.
The major challenge with wifi provisioning and device config is the tedious process which makes it difficult for end user to use the device during first time config.
What everyone wants is easy, smooth and one click process to setup wifi on device.
Using SmartConfig does address this issue by some extent, but does not work with all networks.
wm is good but makes it difficult and adds multiple steps for device configuration for end user.
We can some how combine these two advantages together by providing some settings to enable smartconfig at startup, if successful then just bypass wm config if not then enter into wm autoconfig mode. also to add some on-demand way to to start smartconfig again.
Also I'm always in favor of rest api for mobile companion app interface, I understand this is off-topic, but thats all what it comes down eventually for any commercial product.
@tablatronix commented on GitHub (Nov 10, 2019):
I have not found a decent smartconfig app, has the esp one been improved ? This is why I wanted to get airkiss working, its built into wechat, just not standardized outside of china, and has sparse docs.
@bkrajendra commented on GitHub (Nov 10, 2019):
If you work with cordova, I have this small example app.
You need to have all requirements for cordova done before following steps.
Check this out:
https://www.iocare.in/smartconfig
this will create a complete app with smartconfig functionality.
Load ESP with example smartconfig sketch.
In app scan your all wifi APs.
Select your local AP from drop down.
Enter password for it.
Click start config to configure.