You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
817 B

/*
* 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_ */