embeded/esp322023. 12. 12. 15:23

다음 (daum.net)의 주소를 이용해서 한번 받아오려고 했는데 먼가 안 맞는지 안된다.

CIPSEND=18인데 14 + CR + LF 해도 먼가 안 맞는데 엔터가 한번 더 들어가야 해서 그런가?

GET / HTTP/1.0<엔터><엔터>

일단 google.com 은 잘 되는 듯. daum.net이 문제인가?

 

AT+CWMODE?

+CWMODE:2

OK
AT+CWMODE=1


OK
AT+CWLAP

+CWLAP:(3,"WIFI 1",-75,"00:00:00:00:00:00",1,1,0)
+CWLAP:(3,"WIFI 2",-70,"00:00:00:00:00:00",1,-19,0)
+CWLAP:(3,"WIFI 3",-89,"00:00:00:00:00:00",1,-17,0)
+CWLAP:(3,"WIFI 4",-82,"00:00:00:00:00:00",1,-21,0)
+CWLAP:(0,"WIFI 5",-89,"00:00:00:00:00:00",2,-21,0)
+CWLAP:(4,"WIFI 6",-89,"00:00:00:00:00:00",1,-24,0)

OK
AT+CWJAP="WIFI 1","password"

WIFI CONNECTED
WIFI GOT IP

OK
AT+CWQAP


OK
WIFI DISCONNECT
AT+CWJAP="WIFI 1","password"

WIFI CONNECTED
WIFI GOT IP

OK
AT+CIPSTA?

+CIPSTA:ip:"192.168.0.55"
+CIPSTA:gateway:"192.168.10.1"
+CIPSTA:netmask:"255.255.0.0"

OK
AT+CIPSTATUS

STATUS:2

OK
AT+CIPSTART="TCP","211.249.220.24",80

CONNECT

OK
AT+CIPSEND=18


OK

Recv 18 bytes

SEND OK

+IPD,280:HTTP/1.1 400 Bad Request
Date: Wed, 13 Dec 2023 05:05:16 GMT
Content-Type: text/html
Content-Length: 150
Connection: close

<html>
<head><title>400 Bad Request</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx</center>
</body>
</html>
CLOSED

 

[링크 : https://m.blog.naver.com/ajkun/220214336816]

[링크 : https://blog.naver.com/ssshin22/220868021464]

[링크 : https://wiki.seeedstudio.com/WiFi_Serial_Transceiver_Module/]

'embeded > esp32' 카테고리의 다른 글

esp32 at 펌웨어  (0) 2023.12.12
esp32 종류  (0) 2023.12.12
esp32-s2 adc  (0) 2023.12.11
esp32 oled i2c  (0) 2023.12.11
esp32-cam lcd 달기 2  (0) 2023.11.30
Posted by 구차니