1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-03-14 10:03:09 +01:00
CommandStation-EX/WifiInterface.h
Asbelos e0c76a9dc4 Alter Stream to Print
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.
2020-06-12 14:28:35 +01:00

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