forked from xiaozhi/xiaozhi-esp32
24 lines
463 B
C++
24 lines
463 B
C++
#ifndef _WIFI_STATION_H_
|
|
#define _WIFI_STATION_H_
|
|
|
|
#include <string>
|
|
#include "esp_event.h"
|
|
|
|
class WifiStation {
|
|
public:
|
|
WifiStation();
|
|
void Start();
|
|
bool IsConnected();
|
|
std::string ssid() { return ssid_; }
|
|
std::string ip_address() { return ip_address_; }
|
|
|
|
private:
|
|
EventGroupHandle_t event_group_;
|
|
std::string ssid_;
|
|
std::string password_;
|
|
std::string ip_address_;
|
|
int reconnect_count_ = 0;
|
|
};
|
|
|
|
#endif // _WIFI_STATION_H_
|