Skip to content

Instantly share code, notes, and snippets.

@devyte
Created October 4, 2019 03:10
Show Gist options
  • Save devyte/15d661b1dba30878319275883cd60e32 to your computer and use it in GitHub Desktop.
Save devyte/15d661b1dba30878319275883cd60e32 to your computer and use it in GitHub Desktop.
ethernet network
#include "Network.h"
namespace Ethernet5100
{
class EthernetClass
{
};
using Client = Network::Client;
using Server = Network::Server;
using EthernetClient = Network::Client;
using EthernetServer = Network::Server;
}
#include "Network.h"
namespace Ethernet5500
{
class EthernetClass
{
};
using Client = Network::Client;
using Server = Network::Server;
using EthernetClient = Network::Client;
using EthernetServer = Network::Server;
}
namespace Network
{
class Client
{
};
class Server
{
};
} // Network
#include "Network.h"
namespace Wlan
{
class WiFiClass
{
};
using Client = Network::Client;
using Server = Network::Server;
using ESP8266WiFiClient = Network::Client;
using ESP8266WiFiServer = Network::Server;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment