1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-24 08:36:14 +01:00
This commit is contained in:
travis-farmer 2023-11-03 07:34:05 -04:00
parent b1f5c34ef2
commit 05db1bdd90
No known key found for this signature in database
GPG Key ID: 0BC296791D14CB35

View File

@ -21,7 +21,7 @@
#include "defines.h" #include "defines.h"
#ifdef WIFI_NINA #ifdef WIFI_NINA
#include <vector> //#include <vector>
#include <SPI.h> #include <SPI.h>
#ifndef ARDUINO_GIGA #ifndef ARDUINO_GIGA
#include <WifiNINA.h> #include <WifiNINA.h>
@ -49,8 +49,8 @@
#else #else
#warning "WiFiNINA has no SPI port or pin allocations for this archiecture yet!" #warning "WiFiNINA has no SPI port or pin allocations for this archiecture yet!"
#endif #endif
#define MAX_CLIENTS 10 #define MAX_CLIENTS 4
class NetworkClient { /*class NetworkClient {
public: public:
NetworkClient(WiFiClient c) { NetworkClient(WiFiClient c) {
wifi = c; wifi = c;
@ -73,7 +73,7 @@ public:
}; };
WiFiClient wifi; WiFiClient wifi;
bool inUse = true; bool inUse = true;
}; };*/
//static std::vector<NetworkClient> clients; // a list to hold all clients //static std::vector<NetworkClient> clients; // a list to hold all clients
static WiFiServer *server = NULL; static WiFiServer *server = NULL;