SmartOS/Board/Esp8266Module.h

25 lines
415 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef _Esp8266Module_H_
#define _Esp8266Module_H_
#include "Net\Socket.h"
#include "Device\SerialPort.h"
// Esp8266模块
class Esp8266Module
{
public:
SerialConfig Esp;
cstring SSID;
cstring Pass;
Esp8266Module();
void InitWiFi(cstring ssid, cstring pass);
// 打开Esp8266作为主控或者纯AP
NetworkInterface* Create8266(OutputPort* led = nullptr);
};
#endif