#ifndef _ESP8266_H_
#define _ESP8266_H_



#define AT          "AT\r\n"	
#define CWMODE      "AT+CWMODE=3\r\n"		//STA+AP模式
#define CWDHCP      "AT+CWDHCP=1,1\r\n"		//STA+AP模式
#define ATE0        "ATE0\r\n"           //禁止回显
#define NSLEEP      "AT+SLEEP=0\r\n" 
#define RST         "AT+RST\r\n"
#define RESTORE     "AT+RESTORE\r\n"
#define CIFSR       "AT+CIFSR\r\n"
#define CWJAP       "AT+CWJAP=\"tuoren3\",\"meiyoumima\"\r\n"	//ssid: onenet 密码：空
#define CIPSTART    "AT+CIPSTART=\"TCP\",\"%s\",%s\r\n"	//MQTT服务器 183.230.40.39/876   
#define CIPCLOSE    "AT+CIPCLOSE\r\n"	//MQTT服务器 183.230.40.39/876
#define CIPSTATUS   "AT+CIPSTATUS\r\n"	//查询TCP状态
#define CIPMODE0    "AT+CIPMODE=0\r\n"		//非透传模式
#define CIPMODE1    "AT+CIPMODE=1\r\n"		//透传模式
#define CIPSEND     "AT+CIPSEND\r\n"   
#define Out_CIPSEND     "+++" 
#define CIPSTATUS   "AT+CIPSTATUS\r\n"		//网络状态查询

int esp8266_sal_init(void);

#endif
