You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
300 B
C
20 lines
300 B
C
|
1 month ago
|
#ifndef _WIFI_MANAGER_H_
|
||
|
|
#define _WIFI_MANAGER_H_
|
||
|
|
#include "esp_err.h"
|
||
|
|
|
||
|
|
typedef enum
|
||
|
|
{
|
||
|
|
WIFI_DISCONNECTED, //wifi断开
|
||
|
|
WIFI_CONNECTED, //wifi已连接
|
||
|
|
}WIFI_EV_e;
|
||
|
|
|
||
|
|
typedef void(*wifi_event_cb)(WIFI_EV_e);
|
||
|
|
|
||
|
|
//WIFI STA初始化
|
||
|
|
esp_err_t wifi_sta_init(wifi_event_cb f);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
#endif
|