ESP8266 Developer Zone The Official ESP8266 Forum 2022-05-04T19:18:40+08:00 https://bbs.espressif.com:443/feed.php?f=62&t=11610 2022-05-04T19:18:40+08:00 2022-05-04T19:18:40+08:00 https://bbs.espressif.com:443/viewtopic.php?t=11610&p=101132#p101132 <![CDATA[Re: how to support the "captive Portal" on ESP8266]]>
The built-in LED will blink 5 times when a password is posted.

Warning! Your saved passwords will not disappear when you restart/power off the ESP8266.

Note: If you want to see the stored passwords go to "172.0.0.1/pass". For changing the SSID, go to "172.0.0.1/ssid"

Statistics: Posted by ankitsingh0012 — Wed May 04, 2022 7:18 pm


]]>
2019-10-02T10:43:36+08:00 2019-10-02T10:43:36+08:00 https://bbs.espressif.com:443/viewtopic.php?t=11610&p=66280#p66280 <![CDATA[Re: how to support the "captive Portal" on ESP8266]]> Statistics: Posted by Guest — Wed Oct 02, 2019 10:43 am


]]>
2018-07-28T17:10:58+08:00 2018-07-28T17:10:58+08:00 https://bbs.espressif.com:443/viewtopic.php?t=11610&p=22251#p22251 <![CDATA[how to support the "captive Portal" on ESP8266]]> use the code,such as:
LOCAL void ICACHE_FLASH_ATTR
user_udp_recv(void *arg, char *pusrdata, unsigned short length)
{
char DeviceBuffer[40] = {0};
char Device_mac_buffer[60] = {0};
char hwaddr[6];
struct espconn *pesp_conn = arg;
struct ip_info ipconfig;
at_port_print("user_udp_recv\r\n");
//at_port_print(pusrdata);
//m_pespconn =pesp_conn;

remot_info *premot = NULL;
sint8 value = ESPCONN_OK;
char pbuf[100] = {0};
if (espconn_get_connection_info(pesp_conn,&premot,0) == ESPCONN_OK){
pesp_conn->proto.tcp->remote_port = premot->remote_port;
pesp_conn->proto.tcp->remote_ip[0] = premot->remote_ip[0];
pesp_conn->proto.tcp->remote_ip[1] = premot->remote_ip[1];
pesp_conn->proto.tcp->remote_ip[2] = premot->remote_ip[2];
pesp_conn->proto.tcp->remote_ip[3] = premot->remote_ip[3];

os_sprintf(pbuf,"DNS Remote[IP=" IPSTR "][Port=%d]",IP2STR(&pesp_conn->proto.udp->remote_ip), pesp_conn->proto.udp->remote_port);
at_port_print(pbuf);
//espconn_sent(pesp_conn, pusrdata, os_strlen(pusrdata));
espconn_sent(pesp_conn, html, strlen(html));
}
}

but it is never usefull.
after to connet to the EPS82666 AP, but cann't show the portal window on the phone.
how to suport the captive Portal on esp8266??

Statistics: Posted by lijay910 — Sat Jul 28, 2018 5:10 pm


]]>