Beaucoup de dev... début de LoraModuleInterface
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include "LoraModuleInterface.h"
|
||||
|
||||
CLoraModuleInterface::CLoraModuleInterface()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
int CLoraModuleInterface::NewFrameReceived(int DeviceID, int DeviceAddress, int MessageID, int DataSize, QByteArray Data)
|
||||
{
|
||||
return RET_OK;
|
||||
}
|
||||
|
||||
int CLoraModuleInterface::SendNetworkMessage(int DeviceID, int DeviceAddress, int MessageID, int DataSize, QByteArray *Data)
|
||||
{
|
||||
return RET_OK;
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
#ifndef LORAMODULEINTERFACE_H
|
||||
#define LORAMODULEINTERFACE_H
|
||||
|
||||
#include <QByteArray>
|
||||
#include <QObject>
|
||||
#include <QSerialPort>
|
||||
#include "NetworkProtocol.h"
|
||||
#include "AbstractNetworkInterface.h"
|
||||
#include "NetworkDevice.h"
|
||||
|
||||
class CLoraModuleInterface : public QObject, public CNetworkProtocol, public CAbstractNetworkCommIF
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CLoraModuleInterface();
|
||||
|
||||
|
||||
|
||||
//NetworkProtocol implementation
|
||||
virtual int NewFrameReceived(int DeviceID, int DeviceAddress, int MessageID, int DataSize, QByteArray Data);
|
||||
|
||||
//NetworkCommIF implementation
|
||||
virtual int SendNetworkMessage(int DeviceID, int DeviceAddress, int MessageID, int DataSize, QByteArray *Data);
|
||||
};
|
||||
|
||||
#endif // LORAMODULEINTERFACE_H
|
||||
Reference in New Issue
Block a user