feat: 全量同步 254 个常用的 Arduino 扩展库文件
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
#ifndef _PAINLESS_MESH_STA_H_
|
||||
#define _PAINLESS_MESH_STA_H_
|
||||
|
||||
#include "painlessmesh/configuration.hpp"
|
||||
|
||||
#include <list>
|
||||
|
||||
typedef struct {
|
||||
uint8_t bssid[6];
|
||||
TSTRING ssid;
|
||||
int8_t rssi;
|
||||
} WiFi_AP_Record_t;
|
||||
|
||||
class StationScan {
|
||||
public:
|
||||
Task task; // Station scanning for connections
|
||||
|
||||
StationScan() {}
|
||||
void init(painlessmesh::wifi::Mesh *pMesh, TSTRING ssid, TSTRING password,
|
||||
uint16_t port);
|
||||
void stationScan();
|
||||
void scanComplete();
|
||||
void filterAPs();
|
||||
void connectToAP();
|
||||
|
||||
protected:
|
||||
TSTRING ssid;
|
||||
TSTRING password;
|
||||
painlessMesh *mesh;
|
||||
uint16_t port;
|
||||
std::list<WiFi_AP_Record_t> aps;
|
||||
|
||||
void requestIP(WiFi_AP_Record_t &ap);
|
||||
|
||||
// Manually configure network and ip
|
||||
bool manual = false;
|
||||
IPAddress manualIP = IPAddress(0, 0, 0, 0);
|
||||
|
||||
friend painlessMesh;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user