/* * Request.hpp * * Created on: Jul 14, 2021 * Author: Andreas Berthoud */ #ifndef REQUEST_HPP_ #define REQUEST_HPP_ #include "Command.hpp" #include "Response.hpp" class Request : public Command { public: Request(uint8_t * payload_ptr, uint16_t size); bool execute() override; virtual Response * execute_request(uint16_t response_identifier) = 0; protected: int buffer_offset = 2; private: uint16_t response_identifier; }; #endif /* REQUEST_HPP_ */