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
706 B
29 lines
706 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(uint16_t response_identifier);
|
|
|
|
virtual CommandId get_command_id() override { return COMMAND_HEARTBEAT_RESPONSE; }
|
|
};
|
|
|
|
class HeartbeatRequest : public Request {
|
|
public:
|
|
|
|
HeartbeatRequest(uint8_t * payload_ptr, uint16_t size);
|
|
virtual Response * execute_request(uint16_t response_identifier) override;
|
|
virtual CommandId get_command_id() override { return COMMAND_HEARTBEAT_REQUEST; }
|
|
};
|
|
|
|
#endif /* HEARTBEATREQUEST_HPP_ */
|
|
|