#ifndef __USER_WIFI_H #define __USER_WIFI_H #include "main.h" #include "user_sensor.h" typedef enum sal_proto_en { TOS_SAL_PROTO_TCP, TOS_SAL_PROTO_UDP, } sal_proto_t; //MQTT½ÓÊÕÊý×é extern uint8_t mqttRecvData[256]; void Check_WifiConfigState(void); void SendDate_Wifi(SensorDataTypeDef *sensorData); int SendDate_Wifi_MQTT(int sock, unsigned char *buf, int buflen); int RecvDate_Wifi_MQTT(int sock, unsigned char *buf, int count); int Wifi_Net_Connect(const char *ip, const char *port, sal_proto_t proto); int Wifi_Net_Close(int sock); int CheckState_Wifi(void); int NetConfig_Wifi(void); #endif /* __USER_WIFI_H */