1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2026-02-11 07:03:07 +01:00

make birectional channels the default, clean up some channel handling

This commit is contained in:
wellenvogel
2025-09-17 17:57:03 +02:00
parent 3d131c7d98
commit d5a9568b67
15 changed files with 42 additions and 39 deletions

View File

@@ -1,11 +1,11 @@
#pragma once
#include "GwBuffer.h"
#include "GwChannelModes.h"
class GwChannelInterface{
public:
virtual void loop(bool handleRead,bool handleWrite)=0;
virtual void readMessages(GwMessageFetcher *writer)=0;
virtual size_t sendToClients(const char *buffer, int sourceId, bool partial=false)=0;
virtual Stream * getStream(bool partialWrites){ return NULL;}
virtual String getMode(){return "UNKNOWN";}
virtual int getType()=0; //return the numeric type
virtual int getType(){ return GWSERIAL_TYPE_BI;} //return the numeric type
};