Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
application::doip::DiagMessageHandler Class Reference

A class to handle UDS messages via DoIP. More...

#include <diag_message_handler.h>

Inheritance diagram for application::doip::DiagMessageHandler:

Public Member Functions

 DiagMessageHandler (helper::CurlWrapper *curl, std::string resourcesUrl, uint8_t protocolVersion)
 Constructor. More...
 
DoipLib::Message * GetMessage () override
 
bool TryHandle (const DoipLib::Message *request, std::vector< uint8_t > &response) const override
 

Detailed Description

A class to handle UDS messages via DoIP.

Constructor & Destructor Documentation

◆ DiagMessageHandler()

application::doip::DiagMessageHandler::DiagMessageHandler ( helper::CurlWrapper curl,
std::string  resourcesUrl,
uint8_t  protocolVersion 
)

Constructor.

Parameters
curlConfigured CURL instance for RESTful communication
resourcesUrlConnected vehicle resources access RESTful URL
protocolVersionDoIP protocol version

Member Function Documentation

◆ TryHandle()

bool application::doip::DiagMessageHandler::TryHandle ( const DoipLib::Message *  request,
std::vector< uint8_t > &  response 
) const
override
Note
Previous message field is used for the UDS response data