8#include <RHGenericDriver.h>
9#include <RHTcpProtocol.h>
75 RH_TCP(
const char* server =
"localhost:4000");
116 virtual bool recv(uint8_t* buf, uint8_t* len);
125 virtual bool send(
const uint8_t* data, uint8_t len);
148 bool connectToServer();
152 bool checkForEvents();
161 bool sendThisAddress(uint8_t thisAddress);
168 bool sendPacket(
const uint8_t* data, uint8_t len);
178 uint8_t _rxBuf[RH_TCP_MAX_PAYLOAD_LEN + 5];
183 void validateRxBuf();
187 volatile bool _rxBufFull;
Abstract base class for a RadioHead driver.
Definition RHGenericDriver.h:42
Driver to send and receive unaddressed, unreliable datagrams via sockets on a Linux simulator.
Definition RH_TCP.h:68
virtual bool waitAvailableTimeout(uint16_t timeout, uint16_t polldelay=0)
void setThisAddress(uint8_t address)
virtual uint8_t maxMessageLength()
RH_TCP(const char *server="localhost:4000")
virtual bool send(const uint8_t *data, uint8_t len)
virtual bool recv(uint8_t *buf, uint8_t *len)
virtual void waitAvailable(uint16_t polldelay=0)