硬件接法:
1.STM32的USART1口,接ESP826的TX,RX,GND.
2.波特率设置成9600/8N1
软件流程:
->1.RESET(AT+RST)
-> 2.设置CWMOD为3,即AP+STA(AT+CWMOD=3)
->3.设置SSID和PASSWORD. (AT+CWJAP="FAST_LCS","123456")
->4.设置UDP的地址及端口 (AT+CIPSTART="UDP","192.168.1.103",8888)
->5.发送指令 (AT+CIPSEND=4)->发送四个字节
->6.发送数据