AT Command + Webserver
AT Command + Webserver
Postby francis » Thu Jan 12, 2017 12:47 am
Hi,
How can i have AT Command mecanism through UART & WebServer for AP management in the same firmware ?
Is there already some existing material for that ?
I am using another MCU beside the ESP01 and i want the ESP01 to be able to handle connection management and to provide Net connection to the other MCU trough AT Commands (or something else) in the other hand.
Thank you for your answers
François
How can i have AT Command mecanism through UART & WebServer for AP management in the same firmware ?
Is there already some existing material for that ?
I am using another MCU beside the ESP01 and i want the ESP01 to be able to handle connection management and to provide Net connection to the other MCU trough AT Commands (or something else) in the other hand.
Thank you for your answers
François
Re: AT Command + Webserver
Postby pratik » Mon Feb 06, 2017 12:17 pm
You could implement a webserver using the AT commands. There may be existing frameworks for your MCU, look for CGI frameworks or templates. They are easy to program.
However, if you need the ESP-01 to manage more... such as serve simple pages or parse requests, etc., this can be done by using custom AT commands. You need to add custom commands or server code to existing AT commands using nonOS SDK.
However, if you need the ESP-01 to manage more... such as serve simple pages or parse requests, etc., this can be done by using custom AT commands. You need to add custom commands or server code to existing AT commands using nonOS SDK.
Re: AT Command + Webserver
Postby eznasi » Mon Apr 03, 2017 8:59 pm
hello
i have the same problem - there is no templates nor other help for having the home network SSID and password, from a connected phone. i mean - i need to write the WEB page by myself, wait to an answers, and then to reconnect to the that network.
i developing a project with Renesas CPU, which connect to the ESP-12E through a UART. means that i can only execute AT-commands.
if you found something on that issue, please share it with me....
thank you in advance
Eznasi
i have the same problem - there is no templates nor other help for having the home network SSID and password, from a connected phone. i mean - i need to write the WEB page by myself, wait to an answers, and then to reconnect to the that network.
i developing a project with Renesas CPU, which connect to the ESP-12E through a UART. means that i can only execute AT-commands.
if you found something on that issue, please share it with me....
thank you in advance
Eznasi
Re: AT Command + Webserver
Postby Bojan » Tue Apr 04, 2017 6:42 am
Hi! Any suggestions how to properly handle multiple simultaneous connections to web server usign AT commands? For examle server my still be busy answering first connection (0,CONNECT) while the new one arrives (1,CONNECT) ... how can you know which connection input stream of data belongs to in this case? Example:
Set up web server:
AT+RST
AT+CWMODE=1
AT+CWJAP="MySSID","MyPwd"
AT+CIPSTA_DEF="10.0.0.6","10.0.0.1","255.255.255.0"
AT+CIPMUX=1
AT+CIPSERVER=1,80
Get 1st connection to link 0:
0,CONNECT
Before mannaging to send reply to 0 and close it (AT+CIPCLOSE=0) you can get another connection to link 1:
1, CONNECT
How can I tell which link (0 or 1) does input stream of data belong to?
Thank you.
Set up web server:
AT+RST
AT+CWMODE=1
AT+CWJAP="MySSID","MyPwd"
AT+CIPSTA_DEF="10.0.0.6","10.0.0.1","255.255.255.0"
AT+CIPMUX=1
AT+CIPSERVER=1,80
Get 1st connection to link 0:
0,CONNECT
Before mannaging to send reply to 0 and close it (AT+CIPCLOSE=0) you can get another connection to link 1:
1, CONNECT
How can I tell which link (0 or 1) does input stream of data belong to?
Thank you.
Re: AT Command + Webserver
Postby pratik » Fri Apr 07, 2017 2:28 pm
We do provide access to modify the AT command firmware using our SDK. If you plan to have a customized application with webserver stuff handled in ESP8266 itself, that is definitely possible, but it requires programming the ESP8266 with our own program instead of the stock AT firmware.
As for handling multiple connections, the connection number is provided in the +IPD tag when you receive data. That can be used to determine which device sent the data to your server.
As for handling multiple connections, the connection number is provided in the +IPD tag when you receive data. That can be used to determine which device sent the data to your server.
Who is online
Users browsing this forum: No registered users and 175 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.