1394【毕设课设】基于单片机和ES8266通信仿真设计

【资源下载】下载地址如下1394:
https://docs.qq.com/doc/DTlRSd01BZXNpRUxl

ESP8266与51单片机控制系统,包括液晶1602、电机,通过按钮可经ESP8266向上位机会送数据。通过Protues的控件映射到计算机的串口上,Protues系统通过计算机串口与ESP8266通信。

#include <reg51.h>
#include <string.h>
#include <stdio.h>

typedef unsigned char uint8;
typedef unsigned int uint16;

//#define PWD "TP-LINK_2.4GHz_FC2545"
//#define SSID "idea11424"
#define SSID "david"             
#define PWD "david826"


#define ENTER "\r\n"
#define E_RST "AT+RST"

/*STATION_IDLE = 0,?
STATION_CONNECTING,?
STATION_WRONG_PASSWORD,?
STATION_NO_AP_FOUND,?
STATION_CONNECT_FAIL,?
STATION_GOT_IP*/

#define IDLE 0
//#define CONNECTING 1
#define PWD_W 1
#define NO_AP_F 3
#define CONNECT_F 4

 

posted @ 2021-03-16 20:13  roadroad  阅读(110)  评论(0编辑  收藏  举报
电设屋
上千套电子毕设课设方案