mirror of
https://github.com/meshtastic/firmware.git
synced 2026-06-13 11:19:44 -04:00
* ThinkNode G3, ETH support WIP * ThinkNode G3, ETH support WIP * ThinkNode G3, ETH support WIP * ThinkNode G3, ETH support WIP * ThinkNode G3, ETH support WIP * ThinkNode G3, ETH support WIP * ThinkNode G3, ETH support WIP * rename variant and add guard macros * older G3 operational. M7 next. * Split out G3 and M7 to different variants. Completely new PCB design. The G3 stays on 'PRIVATE_HW' * Define button behaviour and use all of the device flash --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: caveman99 <25002+caveman99@users.noreply.github.com> Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz>
29 lines
802 B
C++
29 lines
802 B
C++
#pragma once
|
|
|
|
#include "ServerAPI.h"
|
|
#if !defined(USE_WS5500) && !defined(USE_CH390D)
|
|
#include <RAK13800_W5100S.h>
|
|
|
|
/**
|
|
* Provides both debug printing and, if the client starts sending protobufs to us, switches to send/receive protobufs
|
|
* (and starts dropping debug printing - FIXME, eventually those prints should be encapsulated in protobufs).
|
|
*/
|
|
class ethServerAPI : public ServerAPI<EthernetClient>
|
|
{
|
|
public:
|
|
explicit ethServerAPI(EthernetClient &_client);
|
|
};
|
|
|
|
/**
|
|
* Listens for incoming connections and does accepts and creates instances of EthernetServerAPI as needed
|
|
*/
|
|
class ethServerPort : public APIServerPort<ethServerAPI, EthernetServer>
|
|
{
|
|
public:
|
|
explicit ethServerPort(int port);
|
|
};
|
|
|
|
void initApiServer(int port = SERVER_API_DEFAULT_PORT);
|
|
void deInitApiServer();
|
|
#endif
|