9#include <RHGenericDriver.h>
13#define RH_MAX_MESSAGE_LEN 255
71 bool sendto(uint8_t* buf, uint8_t len, uint8_t address);
88 bool recvfrom(uint8_t* buf, uint8_t* len, uint8_t* from = NULL, uint8_t* to = NULL, uint8_t*
id = NULL, uint8_t* flags = NULL);
Manager class for addressed, unreliable messages.
Definition RHDatagram.h:46
void setHeaderFrom(uint8_t from)
Definition RHDatagram.cpp:87
void setHeaderFlags(uint8_t set, uint8_t clear=RH_FLAGS_NONE)
Definition RHDatagram.cpp:97
bool available()
Definition RHDatagram.cpp:52
uint8_t headerId()
Definition RHDatagram.cpp:112
void setThisAddress(uint8_t thisAddress)
Definition RHDatagram.cpp:25
uint8_t headerFrom()
Definition RHDatagram.cpp:107
bool waitPacketSent()
Definition RHDatagram.cpp:62
RHGenericDriver & _driver
The Driver we are to use.
Definition RHDatagram.h:162
uint8_t thisAddress()
Definition RHDatagram.cpp:77
void setHeaderId(uint8_t id)
Definition RHDatagram.cpp:92
bool recvfrom(uint8_t *buf, uint8_t *len, uint8_t *from=NULL, uint8_t *to=NULL, uint8_t *id=NULL, uint8_t *flags=NULL)
Definition RHDatagram.cpp:39
uint8_t headerFlags()
Definition RHDatagram.cpp:117
void waitAvailable(uint16_t polldelay=0)
Definition RHDatagram.cpp:57
bool sendto(uint8_t *buf, uint8_t len, uint8_t address)
Definition RHDatagram.cpp:33
void setHeaderTo(uint8_t to)
Definition RHDatagram.cpp:82
bool init()
Definition RHDatagram.cpp:17
uint8_t headerTo()
Definition RHDatagram.cpp:102
uint8_t _thisAddress
The address of this node.
Definition RHDatagram.h:165
bool waitAvailableTimeout(uint16_t timeout, uint16_t polldelay=0)
Definition RHDatagram.cpp:72
Abstract base class for a RadioHead driver.
Definition RHGenericDriver.h:42