/* * HeartbeatCommand.hpp * * Created on: Jul 13, 2021 * Author: Andreas Berthoud */ #ifndef HEARTBEATCOMAND_HPP_ #define HEARTBEATCOMAND_HPP_ #include "Request.hpp" #include "Response.hpp" class HeartbeatResponse : public Response { public: HeartbeatResponse(com_channel_type_t com_channel_type, uint16_t response_identifier); virtual CommandId get_command_id() override { return COMMAND_HEARTBEAT_RESPONSE; } }; class HeartbeatRequest : public Request { public: HeartbeatRequest(com_channel_type_t com_channel_type, uint8_t * payload_ptr, uint16_t size); virtual Response * execute_request(com_channel_type_t com_channel_type, uint16_t response_identifier) override; virtual CommandId get_command_id() override { return COMMAND_HEARTBEAT_REQUEST; } }; #endif /* HEARTBEATREQUEST_HPP_ */