3
0
Fork 0
xnode/xnode-base/XnodeBaseRadio.h

34 lines
664 B
C
Raw Permalink Normal View History

2022-11-13 00:46:38 +00:00
#ifndef XnodeBaseRadio_h
#define XnodeBaseRadio_h
#include <XnodeBaseHardware.h>
#include <XnodeSerial.h>
#include <XnodeSystem.h>
#include <XnodeSystemModule.h>
#include <XnodeBaseNetwork.h>
#include <XnodeProtocol.h>
#include <RFM69.h>
class XnodeBaseRadio: public XnodeSystemModule {
private:
void checkNoDataTimeout();
void checkPing();
void cmdOpen();
void cmdClose();
void cmdInfo();
void handleCmdInit();
void handleCmdFlash();
void sendReply();
public:
void begin();
void loop();
// from XnodeSystemModule
bool systemModuleCommandExecute(char* cmd, char** args);
void systemModuleCommandList();
};
extern XnodeBaseRadio XBRadio;
#endif