forked from xiaozhi/xiaozhi-esp32
Hello, Xiaozhi.
This commit is contained in:
23
main/WifiStation.h
Normal file
23
main/WifiStation.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#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_
|
||||
Reference in New Issue
Block a user