#include "PDU1Handler.h" #include PDU1Handler::PDU1Handler(object_id_t objectId, object_id_t comIF, CookieIF * comCookie) : GomspaceDeviceHandler(objectId, comIF, comCookie, PDU::MAX_CONFIGTABLE_ADDRESS, PDU::MAX_HKTABLE_ADDRESS, PDU::HK_TABLE_REPLY_SIZE, &pdu1HkTableDataset), pdu1HkTableDataset( this) { } PDU1Handler::~PDU1Handler() { } ReturnValue_t PDU1Handler::buildNormalDeviceCommand( DeviceCommandId_t * id) { // *id = GOMSPACE::REQUEST_HK_TABLE; // return buildCommandFromCommand(*id, NULL, 0); return RETURN_OK; } void PDU1Handler::letChildHandleHkReply(DeviceCommandId_t id, const uint8_t *packet) { // const uint8_t* payloadPtr = packet + GOMSPACE::GS_HDR_LENGTH; // size_t size = (size_t)hkTableSize; // pdu1HkTableDataset.deSerialize(&payloadPtr, &size, SerializeIF::Endianness::BIG); // FullTableReply fullTableReply(id, HK_TABLE_ID, &pdu1HkTableDataset); // handleDeviceTM(&fullTableReply, id, true); }