วันอังคารที่ 19 ธันวาคม พ.ศ. 2560

wifi-module-esp8266

ESP8266 AT Command Set
Function AT Command Response
Working AT OK
Restart AT+RST OK [System Ready, Vendor:www.ai-thinker.com]
Firmware version AT+GMR AT+GMR 0018000902 OK
List Access Points AT+CWLAP AT+CWLAP +CWLAP:(4,"RochefortSurLac",-
38,"70:62:b8:6f:6d:58",1)
+CWLAP:(4,"LiliPad2.4",-83,"f8:7b:8c:1e:7c:6d",1)
OK
Join Access Point AT+CWJAP?
AT+CWJAP="SSID","Password"
Query AT+CWJAP? +CWJAP:"RochefortSurLac" OK
Quit Access Point AT+CWQAP=?
AT+CWQAP
Query
OK
Get IP Address AT+CIFSR AT+CIFSR 192.168.0.105
OK
Set Parameters of
Access Point
AT+ CWSAP?
AT+ CWSAP= ,,,
Query
ssid, pwd
chl = channel, ecn = encryption
WiFi Mode AT+CWMODE?
AT+CWMODE=1
AT+CWMODE=2
AT+CWMODE=3
Query
STA
AP
BOTH
Set up TCP or UDP
connection
AT+CIPSTART=?
(CIPMUX=0) AT+CIPSTART =
,,
(CIPMUX=1) AT+CIPSTART=
,,
Query
id = 0-4, type = TCP/UDP, addr = IP address, port= port
TCP/UDP
Connections
AT+ CIPMUX?
AT+ CIPMUX=0
AT+ CIPMUX=1
Query
Single
Multiple
Check join devices' IP AT+CWLIF
TCP/IP Connection
Status
AT+CIPSTATUS AT+CIPSTATUS? no this fun
Send TCP/IP data (CIPMUX=0) AT+CIPSEND=;
(CIPMUX=1) AT+CIPSEND= ,
Close TCP / UDP
connection
AT+CIPCLOSE= or AT+CIPCLOSE
Set as server AT+ CIPSERVER= [,] mode 0 to close server mode; mode 1 to open; port = port
Set the server
timeout
AT+CIPSTO?
AT+CIPSTO=

ไม่มีความคิดเห็น:

แสดงความคิดเห็น