Connecting to SSID without psw using TaifunWiFi extension

451 views
Skip to first unread message

Edgars Logins

unread,
Mar 16, 2019, 4:49:00 AM3/16/19
to MIT App Inventor Forum
hi,
Has someone faced a problem whereby using "call ConnectSSID" without PSW (open network) it does not connect actually? Phone shows that connection is established, but devices can't be accessed within this network. If to connect via phone native menus there is one additional message that the internet is not accessible via this network, this message does not appear while using "call ConnectSSID"

I'm using android 9

Thanks in advance



Taifun

unread,
Mar 16, 2019, 1:56:55 PM3/16/19
to mitappinv...@googlegroups.com
are you using the latest version of the extension, which is version 11?
it might be an Android 9 issue... did you try another device?
also it might be an issue with that network... did you try another open network?


 If to connect via phone native menus there is one additional message that the internet is not accessible via this network,
are you saying, that network is not accessible if you try to connect manually without using the extension? if internet is not accessible manually, it also will not be accessible using the extenison...

Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

Edgars Logins

unread,
Mar 16, 2019, 5:16:05 PM3/16/19
to MIT App Inventor Forum
Thanks for fast replay... yes I'm using the latest extension version. haven't tried yet on another device, but will do that...
Once again step by step.
I'm trying to build an app to control ESP and everything starts with setting up it on the network. As first ESP is booted as a wifi access point. Using app inventor I built a button which calls "connectSSID" (access point SSID coded and without PSW). seems that it is connected, as wifi icon shows that it is... see picture... but when to try to open device by using explorer (e.g. 10.1.0.1) it just doesn't open :(

2019-03-16 23-03-40.JPG
When I'm connecting to access pint using phone's wifi settings, it connects (status bar icon the same as in the picture above) just additionally notification message pops up that there is no internet connection (logically as it is ESP). that is only one difference... but 10.1.0.1  opens and I can proceed with ESP WiFi setup. 

Edgars Logins

unread,
Mar 16, 2019, 5:44:51 PM3/16/19
to MIT App Inventor Forum
And seems on Android 4.1.2 it's working as should :(

Edgars Logins

unread,
Mar 17, 2019, 7:37:17 AM3/17/19
to MIT App Inventor Forum
additionally, if called "Get current WiFi SSID (Service Set Identifier)" while connected to local wifi, as a result, I got <unknown ssid>. is it also android 9 issue? :(

Taifun

unread,
Mar 17, 2019, 1:48:31 PM3/17/19
to MIT App Inventor Forum
probably yes

you might want to try the example project "Get Available SSIDs" sownloadable from here https://puravidaapps.com/wifi.php, which adds a location sensor into the project to get the permission ACCESS_COARSE_LOCATION
please enalbe GPS and try the method SSID in that project and let us know, if you now get the SSID
thank you

Taifun

Edgars Logins

unread,
Mar 17, 2019, 3:57:22 PM3/17/19
to MIT App Inventor Forum
"Get Available SSIDs" I tried this, it worked well. managed to retrieve a list of available SSIDs

Taifun

unread,
Mar 17, 2019, 6:37:14 PM3/17/19
to MIT App Inventor Forum
now use the method SSID inside that project to find out, if your Anddroid device additionally requires the permission ACCESS_COARSE_LOCATION and an enabled GPS to get the SSID

Taifun

Edgars Logins

unread,
Mar 22, 2019, 10:46:02 AM3/22/19
to MIT App Inventor Forum
By adding location sensor to project, "Get available SSIDs" works. 
Will you fix initially described issue "Call ConnectSSID" for android 9?

Taifun

unread,
Mar 22, 2019, 11:28:57 AM3/22/19
to MIT App Inventor Forum
I might adjust this for Android 9 devices one day
meanwhile just add a location sensor to get it working

Taifun

Edgars Logins

unread,
Mar 22, 2019, 1:14:32 PM3/22/19
to mitappinv...@googlegroups.com
"Get current WiFi SSID", "Get available SSIDs" works if the location sensor is added, but "call ConnectSSID" is still not working

Taifun

unread,
Mar 22, 2019, 1:38:53 PM3/22/19
to MIT App Inventor Forum
what happens, if you not only add the location sensor, but you also enable GPS on your device?
you have to test after building the app...

Taifun

Edgars Logins

unread,
Mar 22, 2019, 2:04:33 PM3/22/19
to MIT App Inventor Forum
GPS on my device is all the time activated. When I call ConnectSSID (without PSW), it kind of connects (see picture) to access point created by my ESP8266, but via explorer can't reach ESP's configuration page (the same page can be accessed if I use usual phone's wifi settings to connect to ESP access point). btw, if by using the same call I try to connect to protected wifi, everything is OK.

fff.JPG




Reply all
Reply to author
Forward
0 new messages