connecting ESP-8266 to Android

rupak426
Posts: 22
Joined: Fri Apr 15, 2016 2:16 am

connecting ESP-8266 to Android

Postby rupak426 » Sun Sep 18, 2016 9:26 pm

I am trying to conenct to esp8266 through android. I tried below code on android, but not able to connect to 8266.
Can anyone help me if I am missing some configuration related to 8266.

SSID = "\"" + networkInfo.name + "\"";
password = getPassword(networkInfo.name);
wifiConfiguration.preSharedKey = "\"" + password + "\"";
wifiConfiguration.allowedKeyManagement.set(WifiConfiguration‌​.KeyMgmt.WPA_PSK);
wifiConfiguration.allowedProtocols.set(WifiConfiguration.Pro‌​tocol.WPA);
netid = wifiManager.addNetwork(wifiConfiguration);
wifiManager.enableNetwork(netid, true)
wifiManager.reconnect();

thanks,

Who is online

Users browsing this forum: No registered users and 1 guest