Chat freely about anything...

User avatar
By willemwouters
#2049 I got the examples compiled and running SDK 9.2_1

There are a lot of features already implemented in the IoT_Demo.

In the beginning I had problems connecting, because of the unknown ssid.
I fixed this by setting the ssid in user_esp_platform.c in the ifdef SOFTAP_ENCRYPT part:
os_memset(config.ssid, 50, 5); -> this prefixes the ssid with 11111

And apparently the WPA password set in the user_config.h has some weird prefix.
Therefore i modified user_esp_platform.c
removed the line: os_sprintf(password, MACSTR "_%s", MAC2STR(macaddr), PASSWORD);
and added: os_sprintf(password, "%s", PASSWORD);


For the webbrowser:
http://192.168.4.1/config?command=wifi

returns stuff like this:
{
"Response":{
"Station":{
"Connect_Station":{
"ssid":"",
"password":""
},
"Ipinfo_Station":{
"ip":"0.0.0.0",
"mask":"0.0.0.0",
"gw":"0.0.0.0"
}
},
"Softap":{
"Connect_Softap":{
"authmode":"WPAPSK/WPA2PSK",
"channel":1,
"ssid":"2222287219",
"password":"v*%W>L<@i&Nxe!"
},
"Ipinfo_Softap":{
"ip":"192.168.4.1",
"mask":"255.255.255.0",
"gw":"192.168.4.1"
}
}
}
}


http://192.168.4.1/client?command=info
http://192.168.4.1/client?command=status
http://192.168.4.1/client?command=scan
http://192.168.4.1/client?command=scan&page=1