Class to define the message object.

#include <messageManager.h>

Public Member Functions

 Message (std::string content="", int timeout=100, int retries=3, std::string expectedInitResponse="", std::string expectedEndResponse="")
 

Public Attributes

std::string content
 Command to send via serial , which may be transformed depending on the protocol.
 
int timeout
 Timeout interval that the application will wait before considering the command sent as failed defined in ms.
 
int retries
 Number of times that the application will try to send the command after a timeout or a response different from ok.
 
std::string expectedInitResponse
 Expected init of the response.
 
std::string expectedEndResponse
 Expected end of the response.
 
std::string receivedResponse =""
 Received response.