27 lines
796 B
C
27 lines
796 B
C
#ifndef __TCP_H
|
|
#define __TCP_H
|
|
#include "stm32l1xx.h"
|
|
#include "bsp.h"
|
|
|
|
/*
|
|
*以下参数需要用户自行修改才能测试用过
|
|
*/
|
|
|
|
//定义STA模式参数
|
|
//#define User_ESP8266_SSID "502_2.4G"
|
|
//#define User_ESP8266_PWD "licahk*******" //wifi密码
|
|
//#define User_ESP8266_PWD "shbh03302"
|
|
//#define User_ESP8266_TCPServer_IP "192.168.9.61" //服务器IP
|
|
//#define User_ESP8266_TCPServer_PORT "8080" //服务器端口号
|
|
|
|
//定义服务器的参数
|
|
//#define ESP8266_AP_Port "8080"
|
|
//#define ESP8266_AP_SSID "lica_esp8266"
|
|
//#define ESP8266_AP_PWD "12345678"
|
|
//extern volatile uint8_t TcpClosedFlag; //连接状态标志
|
|
//void ESP8266_STA_TCPClient_Test(void);
|
|
void ESP8266_AP_TCPServer_Config(char *ssid,char *pwd,char *port);
|
|
//void Parse_ESP8266_Buffer(void);
|
|
void WIFI_Process(void);
|
|
#endif
|