tzapu / WiFiManager

ESP8266 WiFi Connection manager with web captive portal
http://tzapu.com/esp8266-wifi-connection-manager-library-arduino-ide/
MIT License
6.6k stars 1.98k forks source link

Configuration by app #218

Closed lunanigra closed 6 years ago

lunanigra commented 8 years ago

Hello, your WiFiManage is quite cool :-)

But the configuration via Browser is not really comfortable. The user has to know several things (connect to ESP8266, open browser with right URL and so on). Then the ESP8266 is often quite slow...

A colleague has implemented a similar (but slightly different) approach. An Ionic app (can be native as well) connects to the ESP8266 if not already configured. This approach reduces the communication and allows developing a complex (or more comfortable) UI.

Is this something that sounds interesting? If so I can send you a copy of our Ionic app... Then you can check how to merge with your solution.

Alkia commented 8 years ago

Looks a great idea.

Kind regards,

On Aug 23, 2016 4:41 AM, "JC" notifications@github.com wrote:

Hello, your WiFiManage is quite cool :-)

But the configuration via Browser is not really comfortable. The user has to know several things (connect to ESP8266, open browser with right URL and so on). Then the ESP8266 is often quite slow...

A colleague has implemented a similar (but slightly different) approach. An Ionic app (can be native as well) connects to the ESP8266 if not already configured. This approach reduces the communication and allows developing a complex (or more comfortable) UI.

Is this something that sounds interesting? If so I can send you a copy of our Ionic app... Then you can check how to merge with your solution.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tzapu/WiFiManager/issues/218, or mute the thread https://github.com/notifications/unsubscribe-auth/AQtsYRrwaRVJrh2HSB6cnDxBP7xynlE8ks5qihd3gaJpZM4JqVew .

tzapu commented 8 years ago

HI,

thanks, it is a great idea, unfortunately it can t sort out some of the biggest issues with the whole process. (or at least i don t know how). You would still need to connect to the esp manually. On most devices(or the ones i have tested), after that step, the configuration portal opens automatically, so you shouldn t need to know IPs anymore. DNS redirection should also work to direct any address in your browser to the proper IP.

In my case, i am using an iphone to configure my devices, i connect to the ESP network, captive portal pops up, enter details, save and that s it... and the only annoying step is that i have to connect to the wifi network, but that s unavoidable currently.

Now, if any of the smart config options or the WPS would be reliable and work, it would be quite a different thing altogether, but, again, in my experience, they are quite hit and miss...

I would love to see the app, maybe there s some scope to link the two together, make WiFiManger also work with an app

thanks again

lunanigra commented 8 years ago

Hi, can you give me an email address? I will send you our sample code.

Beside a faster UI the solution via app will not require manually changing WiFi setting. Similar to Google Cast the app will scan for ESPxxxx networks. If available a setup screen will be provided. Only WiFi settings will be transferred; no HTML or other UI elements. This will speed up configuration and also safe resources on ESP.

Would be great if we can link both approaches together :-)

Thanks, JC

tzapu commented 8 years ago

HI,

On iOS at least, you can t send the settings without connecting to the actual wifi. You also can t force a connection and I am not sure even if you can scan for wifi networks, last i checked there were no public apis for the WIFi connection management in iOS.

Google cast employs a number of other technologies that are most likely not available on the ESP, and even those don t work reliably for me at all times. WifiDirect, Multipeer, quite possibly even bluetooth.

You can use: alex@tzapu.com

Cheers Alex

On 25 Aug 2016, at 16:33, JC notifications@github.com wrote:

Hi, can you give me an email address? I will send you our sample code.

Beside a faster UI the solution via app will not require manually changing WiFi setting. Similar to Google Cast the app will scan for ESPxxxx networks. If available a setup screen will be provided. Only WiFi settings will be transferred; no HTML or other UI elements. This will speed up configuration and also safe resources on ESP.

Would be great if we can link both approaches together :-)

Thanks, JC

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tzapu/WiFiManager/issues/218#issuecomment-242387275, or mute the thread https://github.com/notifications/unsubscribe-auth/AC2FkMd4VOFqbSpqn5voFhh08E7y03S_ks5qjZmigaJpZM4JqVew.

tzapu commented 8 years ago

Forgot, i think chromecast is even putting out or listening for an out of audible range audio signal through the tv and links to the phone through that to send settings, etc.

On 25 Aug 2016, at 16:53, Alex alex@tzapu.com wrote:

HI,

On iOS at least, you can t send the settings without connecting to the actual wifi. You also can t force a connection and I am not sure even if you can scan for wifi networks, last i checked there were no public apis for the WIFi connection management in iOS.

Google cast employs a number of other technologies that are most likely not available on the ESP, and even those don t work reliably for me at all times. WifiDirect, Multipeer, quite possibly even bluetooth.

You can use: alex@tzapu.com mailto:alex@tzapu.com

Cheers Alex

On 25 Aug 2016, at 16:33, JC <notifications@github.com mailto:notifications@github.com> wrote:

Hi, can you give me an email address? I will send you our sample code.

Beside a faster UI the solution via app will not require manually changing WiFi setting. Similar to Google Cast the app will scan for ESPxxxx networks. If available a setup screen will be provided. Only WiFi settings will be transferred; no HTML or other UI elements. This will speed up configuration and also safe resources on ESP.

Would be great if we can link both approaches together :-)

Thanks, JC

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tzapu/WiFiManager/issues/218#issuecomment-242387275, or mute the thread https://github.com/notifications/unsubscribe-auth/AC2FkMd4VOFqbSpqn5voFhh08E7y03S_ks5qjZmigaJpZM4JqVew.

lunanigra commented 8 years ago

hmmm...

alex@tzapu.com (reason: 552-5.7.0 This message was blocked because its content presents a potential)

tzapu commented 8 years ago

seems it doesn t like your attachment ..

lunanigra commented 8 years ago

Seems so... But it's just a ZIP ;-)

umranium commented 8 years ago

Hi,

We have an Android app already. We're currently testing it and fixing some minor issues. If you'd like to test it out, please take a look: ESP Connect on Google Play

tzapu commented 8 years ago

oh man, that s so cool. i would like to make a batter API for this, so anyone can have/build or use an app and also have a showcase/apps section on the main github page. is there anything in particular you d like supported in the api? Would you be ok on being featured? i love it when things develop in cool directions like these :)

Alkia commented 8 years ago

Looks great,

Looking forward helping for test.

It would be great if the ionic app could natively requests for 2 optional feilds:

Kind regards,

Maxime

On Aug 29, 2016 1:40 PM, "tzapu" notifications@github.com wrote:

oh man, that s so cool. i would like to make a batter API for this, so anyone can have/build or use an app and also have a showcase/apps section on the main github page. is there anything in particular you d like supported in the api? Would you be ok on being featured? i love it when things develop further :)

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/tzapu/WiFiManager/issues/218#issuecomment-243043747, or mute the thread https://github.com/notifications/unsubscribe-auth/AQtsYZHZUXUQ6OP-KQIgLQz6GzvKU5wXks5qkn7DgaJpZM4JqVew .

umranium commented 8 years ago

@tzapu We added some APIs and some fixes to the code to get it to work smoothly with apps. For example, supporting a more machine-centric data format (we went with JSON). You can find the additions (and fixes) in this repository: Ken Taylor's WiFiManager repo

umranium commented 8 years ago

@tzapu Forgot to answer one of your questions. Yes, we would love to be featured! :)

lunanigra commented 8 years ago

Sounds cool!! Curious about testing the next release :-)

----- Nachricht beantworten ----- Von: "Umran Abdulla" notifications@github.com An: "tzapu/WiFiManager" WiFiManager@noreply.github.com Cc: "JC" haddorp@lunanigra.de, "Author" author@noreply.github.com Betreff: [tzapu/WiFiManager] Configuration by app (#218) Datum: Mo., Aug. 29, 2016 23:37

@tzapu Forgot to answer one of your questions. Yes, we would love to be featured! :)

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/tzapu/WiFiManager","title":"tzapu/WiFiManager","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/tzapu/WiFiManager"}},"updates":{"snippets":[{"icon":"PERSON","message":"@umranium in #218: @tzapu Forgot to answer one of your questions. Yes, we would love to be featured! :)"}],"action":{"name":"View Issue","url":"https://github.com/tzapu/WiFiManager/issues/218#issuecomment-243264798"}}}

pieman64 commented 8 years ago

@umranium can we have a Blynk token field?

tzapu commented 8 years ago

i think ideally i would expose some api endpoint, and all apps should fetch all configured fields in the sketch and allow configuration

cheers

On 30 Aug 2016, at 01:00, theCHARioT notifications@github.com wrote:

@umranium https://github.com/umranium can we have a Blynk token field?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tzapu/WiFiManager/issues/218#issuecomment-243271112, or mute the thread https://github.com/notifications/unsubscribe-auth/AC2FkFC1Be29XyIdcWYUq_fpzWburD4Dks5qk1aYgaJpZM4JqVew.

umranium commented 8 years ago

@pieman64 We might look into that in the future. Currently our scope is limited to getting the user's device connected to the WiFi (and therefore the internet) as painlessly and as effortlessly as possible.

umranium commented 8 years ago

@lunanigra I should have an update out by early next week.

eshdevpin commented 8 years ago

@umranium Has the update released?

umranium commented 8 years ago

@TechieIndianGuy I just updated the alpha testing version. Here's the link to opt into the alpha testing:

ESP Connect Alpha Testing Opt In Link

I'm keen to get any feedback.

FernandoGarcia commented 7 years ago

Hi!

@umranium why your App doesn't connect to ESP when there a SSID and Password configured here?

if (!wifiManager.startConfigPortal("ESP8266","password"))

It's always saying "connecting to ESP....."

But it works in this way:

if (!wifiManager.startConfigPortal())

I would like to post this issue to your repo but it's not available.

Best regards.

erdemontas commented 7 years ago

I have working device and I'm using wifimanager library properly. I also have an android app, I want to implement"configuration by app" rather than having @umranium 's app. What kind of changes should I do?

pieman64 commented 7 years ago

@erdemontas you might want to look up Blynk provisioning but it's difficult to tell what you want to do from your post.

erdemontas commented 7 years ago

@pieman64 let me try to put it this way; what I want to do to connect my esp to internet via my app not using web portal. First idea which came to my mind is, to be successful on this task, I have to deliver the credentials to my esp and save them in ESP. I figured out how to save them but where I'm stucked is how should I deliver them from Android app to Esp(I guess it has to be in AP mode) Any advice or suggestion is appreciated

kapiloberoi commented 7 years ago

I have been able to put together an app that autodetects the esp8266 and let you select your wifi network settings to be saved into the esp. The only think now remains is to set a hostname so that ince config is over we can access it by name instead for looking for the ip address.

Used appinventor2 and credit goes to Taifun for excellent wifi extension. "Kapiloberoi@gmail" and ill send the code along with apk. Will also post the code and app here in a day !! Be warned that im a terrible coder:))

Cheers -

ghost commented 7 years ago

Guys, I am not able to get the app to find my ESP... What am I doing wrong? Installed the WiFi Manager library then used the AutoConnect example. The ESP creates an AP but when I scan with the app @umranium provided says Unable to find any ESP8266 nodes.

@FernandoGarcia How did you set up your ESP?

Would appreciate some help, because I really want to try and configure my esp's through the mobile app. :)

anshulfd commented 6 years ago

@tzapu Are there any plans to add the features from https://github.com/kentaylor/WiFiManager to this repo?

tablatronix commented 6 years ago

Features yes, merge no.

BuzzHari commented 6 years ago

Is an open source app for configuring esp8266 available yet?

DeveloperChand commented 6 years ago

@gopchi facing same issue. any solution available

laurensV commented 1 year ago

Would also like to know if an open source version of an app is available (auto detect esp etc.)