Taifun's Wifi extension and ESP8266

707 views
Skip to first unread message

Alexey Brylevskiy

unread,
Mar 30, 2017, 8:24:48 PM3/30/17
to MIT App Inventor Forum
I have a problem connecting to my ESP8266 module. I can't connect to it using Taifun's Wifi example app. The connection always reverts back to the last used SSID. But I can connect to ESP8266 every time using the phone's own wifi menu.

I know Taifun's extension does not support open networks. I tried configuring my ESP8266 (running "ESP-Link" firmware) with various security protocols - WEP, WPA-PSK, WPA2-PSK etc, but still it is impossible to connect using Taifun's Wifi example app. What can I do, how can I even provide a log of some sort?

PS. I could connect to other wifi APs using Taifun's app, so it works in principle.

Alexey Brylevskiy

unread,
Mar 30, 2017, 8:33:58 PM3/30/17
to MIT App Inventor Forum
Update: If I connect to ESP8266's AP from the phone's wifi menu first, then Taifun's app is able to re-connect to it. However, having to select the AP from the phone's own menu defies the app's purpose, obviously...

Taifun

unread,
Mar 30, 2017, 9:45:53 PM3/30/17
to mitappinv...@googlegroups.com
that's correct, the wifi extension can only connect to networks, which are password protected

see also the documentation https://puravidaapps.com/wifi.php
Connect to a SSID (Service Set Identifier).
If you provide a non existing SSID or wrong password, this just will be ignored and the device will try to connect to a known SSID instead.

Taifun

Alexey Brylevskiy

unread,
Mar 30, 2017, 9:50:53 PM3/30/17
to MIT App Inventor Forum
In case it isn't clear, when configuring ESP8266 with various security protocols, i did use a password and it did create a password-protected network.

Taifun

unread,
Mar 30, 2017, 10:04:40 PM3/30/17
to MIT App Inventor Forum
I think, WEP is not supported, I would try WPA2-PSK
the Connect method uses this snippet http://stackoverflow.com/a/20504821/1545993
sorry, I don't know why it does not work for that module

Taifun

Alexey Brylevskiy

unread,
Mar 30, 2017, 11:15:37 PM3/30/17
to MIT App Inventor Forum
OK, after a day of testing, I think I finally found out what's going on! 
After I renamed the ESP8266's SSID, it all suddenly started working. The old SSID name was 14 characters long, the new one is 11. I also tried creating a tethering hotspot on another phone with the same 14-char-long name, and your app connected to it no problem. So I'm not really sure where the issue is. Maybe in the ESP8266 firmware.
Thank you so much Taifun!!!
Reply all
Reply to author
Forward
0 new messages