ESP8266 ESP-01 not show data from server in Arduino IDE serial monitor

本小妞迷上赌 提交于 2020-12-15 19:34:56

问题


i am new in arduino and ESP8266 module AT commands. I still learn about how to receive data from server and it show the data in Arduino serial monitor. I will tell you how i do and i hope someone will tell me what's wrong with my code or if any mistake that i have done.

  1. This is my php code in server side. Just a simple coding. I save it as index.php :
<?php
ECHO $_GET['subject'];
?>
  1. This is my AT commands in Arduino IDE serial monitor.
AT+CIPSTART="TCP","nyalalampu.atwebpages.com",80

CONNECT

OK
AT+CIPSEND=110


OK
> CLOSED

After this > symbol appear i insert

GET nyalalampu.atwebpages.com/?subject=anis HTTP/1.0

After that i hit Enter button on keyboard.

I don't know why I don't see any data or text in serial monitor after i hit Enter button on keyboard. It's like nothing happen.After a few seconds what i can see just CLOSED message in Arduino IDE serial monitor. Why it don't print anis in Arduino IDE serial monitor just like i send in GET request to server?

I hope someone will show me somelight what mistake that i have done.TQ

来源:https://stackoverflow.com/questions/64290187/esp8266-esp-01-not-show-data-from-server-in-arduino-ide-serial-monitor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!