Web服务器esp8266的Arduino [英] Web server esp8266 arduino

查看:2336
本文介绍了Web服务器esp8266的Arduino的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在试图建立与esp8266一个服务器,但结果总是否定的。我跟着这个页面的http://allaboutee.com/2015/01/20/esp8266-android-application-for-arduino-pin-control/我还送应用程序。当我运行程序它说服务器准备好,但acuattly网页是不是在铬到达。我还带了一个3.3V稳压器,但随后也结果是一样的。

I have been trying to setup a server with esp8266 but results are always negative. I followed all the instruction of this page http://allaboutee.com/2015/01/20/esp8266-android-application-for-arduino-pin-control/ I even made the app. when I run the program it says server ready but acuattly the webpage is not reachable in chrome. I also brought a 3.3v voltage regulator but then also the result is same.

有一件事情,我也注意到了稳压器连接时,则esp8266不响应AT命令但是,当我将它直接连接到3.3V的Arduino上它响应AT命令,只有在设置了服务器I一个发送指令之一。

One thing that I did notice was when the regulator is connected, then the esp8266 doesn't respond to AT commands But when I connect it directly to 3.3v on arduino it responds to AT commands and set up a server only when I send commands one by one.

请请为神的缘故,自然的缘故,为了人类的帮助,告诉我做我哭是什么...

Please please for gods sake, nature sake, humanity sake help, tell me what to do I am crying ...

推荐答案

我建议你尝试通过串行监控测试ESP和检查是怎么回事。

I recommend you try to test the ESP over a serial monitor and check what is going on.

使用此code:

#include <SoftwareSerial.h>
SoftwareSerial ESP(2, 4); // RX, TX
int baud = 9600; 
void setup() {
     Serial.begin(9600);
     while (!Serial){}
     ESP.begin(9600);
     while (!ESP){}
     Serial.println("Starting the program!");
}

void loop() {
     if (ESP.available() > 0) {
         Serial.write(ESP.read());
     }

     if (Serial.available() > 0) {
         ESP.write(Serial.read());
     }
}

如果固件是老了,ESP会自行复位,甚至经常冻结pretty。要检查当前的固件版本试试AT + GMR。

If the Firmware is old, the ESP might reset itself and even freeze pretty often. To check the current firmware version try AT+GMR.

在成功配置ESP作为softAP&放大器;网络服务器尝试连接到AP并键入它的IP地址(AT + CIFSR)到Web浏览器。结果,
如果你到串行端口的请求开始+ IPD你已经成功发送一个HTTP请求到ESP。

After successfully configuring the ESP as softAP & webserver try to connect to the AP and type it's IP address (AT+CIFSR) into the web browser.
If you get a request to the serial port starting with +IPD you've managed to send a HTTP request to the ESP.

这篇关于Web服务器esp8266的Arduino的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆