47 lines
883 B
C++
47 lines
883 B
C++
#include "DeadboltDevice.h"
|
|
#include "ProtocolDefs.h"
|
|
#include <QDebug>
|
|
|
|
|
|
CDeadboltDevice::CDeadboltDevice(int Address, CAbstractNetworkCommIF *NetworkInterface):
|
|
CNetworkDevice(ID_DEADBOLT,Address,NetworkInterface)
|
|
{
|
|
|
|
}
|
|
|
|
CDeadboltDevice::~CDeadboltDevice()
|
|
{
|
|
}
|
|
|
|
int CDeadboltDevice::NewDeviceFrameReceived(int DeviceID, int DeviceAddress, int MessageID, int DataSize, QByteArray Data)
|
|
{
|
|
Q_UNUSED(DeviceID)
|
|
Q_UNUSED(DeviceAddress)
|
|
Q_UNUSED(DataSize)
|
|
Q_UNUSED(Data)
|
|
|
|
return RET_OK;
|
|
|
|
switch(MessageID)
|
|
{
|
|
case DEADBOLT_DEVICE_STATUS_RESPONSE:
|
|
{
|
|
break;
|
|
}
|
|
case DEADBOLT_DEVICE_ACK:
|
|
{
|
|
break;
|
|
}
|
|
case DEADBOLT_DEVICE_STATUS_REQUEST:
|
|
default:
|
|
{
|
|
qDebug("Received invalid msg from Deadbolt Device");
|
|
break;
|
|
}
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
|