Wifi AP ssid/password change not reflected in client
Posted: Mon May 30, 2016 5:42 am
Hi
I'm having big problems with changing the ssid and password when using the ESP8266WiFi library.
If i set the ESP12 as Acces Point and power it on, it will be accessible to all my other devices (Ubuntu laptop, Macbook pro, Samsung Galaxy 2/3/note and iPhone 5s). So far so good.
Then if I add a password to the ESP12, that will not be reflected on any of my devices. They will just still claim to log onto it, put will of course fail to acces it, due to the lack of the password.
If I then change the name, that will also not be reflected on any of the clients.
BUT, if I delete the password, after having changed the name, the new name suddenly shows up on the clients. But as before, now I can't add a password.
I have turned everything off and on, disabled/enabled wifi etc. etc. Been going in circles for hours now, and haven't gotten anywhere.
I'm having big problems with changing the ssid and password when using the ESP8266WiFi library.
If i set the ESP12 as Acces Point and power it on, it will be accessible to all my other devices (Ubuntu laptop, Macbook pro, Samsung Galaxy 2/3/note and iPhone 5s). So far so good.
Then if I add a password to the ESP12, that will not be reflected on any of my devices. They will just still claim to log onto it, put will of course fail to acces it, due to the lack of the password.
If I then change the name, that will also not be reflected on any of the clients.
BUT, if I delete the password, after having changed the name, the new name suddenly shows up on the clients. But as before, now I can't add a password.
I have turned everything off and on, disabled/enabled wifi etc. etc. Been going in circles for hours now, and haven't gotten anywhere.
Code: Select all
#include <ESP8266WiFi.h>
const char *ssid = "NewName";
const char *password = "1234";
WiFi.softAP(ssid, password);