AT Command + Webserver

francis
Posts: 5
Joined: Thu Jan 12, 2017 12:42 am

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

User avatar
pratik
Posts: 386
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

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.
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

eznasi
Posts: 1
Joined: Mon Apr 03, 2017 8:47 pm

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

Bojan
Posts: 1
Joined: Tue Apr 04, 2017 6:21 am

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.

User avatar
pratik
Posts: 386
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

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.
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

Who is online

Users browsing this forum: No registered users and 2 guests