mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-03-14 10:03:09 +01:00
In prep for Wifi siolution, all output functions changed to expect Print class instead of Stream... Can still pass Serial1 etc because Stream extends Print, but this allows for an output-only class extending Print to collect a response buffer for Wifi sending with AT commands.
21 lines
346 B
C++
21 lines
346 B
C++
|
|
#ifndef WifiInterface_h
|
|
#define WifiInterface_h
|
|
#include <WiFiEsp.h>
|
|
#include "DCCEXParser.h"
|
|
|
|
class WifiInterface {
|
|
|
|
public:
|
|
static void setup();
|
|
static void loop(DCCEXParser & parser);
|
|
|
|
private:
|
|
static WiFiEspServer server;
|
|
static WiFiEspClient client;
|
|
static bool connected;
|
|
static bool haveClient;
|
|
};
|
|
|
|
#endif
|