Webserver function

joecheng56
Posts: 3
Joined: Fri Apr 08, 2016 1:42 pm

Webserver function

Postby joecheng56 » Fri Apr 08, 2016 3:11 pm

Hi,

I refer the document,chap5 of "4B-ESP8266__AT Command Examples__CN_v1.3.pdf" to establish the WebServer.
The webserver function works fine for sta_IP & ap_IP(192.168.4.1), if ESP8266 link to WiFi AP. But when disconnect the WiFi AP,
I can't access the ap_IP, http://192.168.4.1/ .

And I check with AT+CWLIF, the device is link to ESP8266. And it's fine when I ping 192.168.4.1 from device.
I try to set ESP8266 to AP mode by AT+CWMODE=2, but it doesn't work. (NG both CWMODE=2 and CWMODE=3)

The information of ESP8266:
AT version:0.60.0.0(Jan 29 2016 15:10:17)
SDK version:1.5.2(80914727)
compile time:Jan 29 2016 19:07:08

I would like to know how to fix this issue. Please help me.
Attachments
webserverNG.png

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Webserver function

Postby ESP_Faye » Tue Apr 12, 2016 11:11 am

Hi,

Sorry that AT commands do not support webserver function by default.

But you can add it by yourself. Refer to: How to add user-define AT command ?

Thanks for your interest in ESP8266 !

joecheng56
Posts: 3
Joined: Fri Apr 08, 2016 1:42 pm

Re: Webserver function

Postby joecheng56 » Wed Apr 13, 2016 3:07 pm

Hi,

I have fixed this issue.

I use ARM-M0 MCU to run Client & Server via AT+Command (UART).

For Webserver function, It's work for both Soft-AP and Station mode right now.
PS: Under Soft-AP Mode(WiFi AP Disconnected), it is necessary to reduce AT+Command issue frequency.

Result is as appendix file.
Attachments
sofeAP_Webserver.png

Who is online

Users browsing this forum: No registered users and 189 guests