3
0
Fork 0
xnode/xnode-base/XnodeBaseRadio.h
2022-11-13 01:46:38 +01:00

34 lines
664 B
C++

#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