UDS to read data at the diagnostic server by passing the data ID (DID) More...
#include <read_data_by_identifier.h>
Public Member Functions | |
ReadDataByIdentifier (CurlWrapper *curl, std::string resourcesUrl) | |
Constructor. More... | |
std::future< ara::diag::OperationOutput > | HandleMessage (const std::vector< uint8_t > &requestData, ara::diag::MetaInfo &metaInfo, ara::diag::CancellationHandler &&cancellationHandler) override |
Handle an UDS request message. More... | |
Public Member Functions inherited from ara::diag::routing::RoutableUdsService | |
uint8_t | GetSid () const noexcept |
Get SID. More... | |
ara::core::Result< void > | Offer () |
Offer handling DM requests. More... | |
bool | IsOffered () const noexcept |
Get offering status of the service. More... | |
void | StopOffer () noexcept |
Stop offering request handling. | |
Additional Inherited Members | |
Static Public Attributes inherited from ara::diag::routing::RoutableUdsService | |
static const uint8_t | cNegativeResponseCodeSid {0x7f} |
Negative response code service ID. | |
Protected Member Functions inherited from ara::diag::routing::RoutableUdsService | |
RoutableUdsService (const ara::core::InstanceSpecifier &specifier, uint8_t sid) noexcept | |
Constructor. More... | |
void | GenerateNegativeResponse (OperationOutput &response, uint8_t nrc) const |
Generate a negative response with a specific NRC. More... | |
template<class T > | |
bool | TryExtractValue (MetaInfo &metaInfo, std::string key, T &value) const |
Try to extract a value from the given meta-info. More... | |
Protected Attributes inherited from ara::diag::routing::RoutableUdsService | |
const uint8_t | cSubFunctionNotSupported {0x12} |
Unsupported sub-function NRC. | |
const uint8_t | cIncorrectMessageLength {0x13} |
Incorrect message length NRC. | |
const uint8_t | cRequestSequenceError {0x24} |
Incorrect request sequence NRC. | |
Static Protected Attributes inherited from ara::diag::routing::RoutableUdsService | |
static const uint8_t | cPositiveResponseSidIncrement {0x40} |
SID increment for a positive response. | |
UDS to read data at the diagnostic server by passing the data ID (DID)
application::helper::ReadDataByIdentifier::ReadDataByIdentifier | ( | CurlWrapper * | curl, |
std::string | resourcesUrl | ||
) |
Constructor.
curl | Configured CURL instance for RESTful communication |
resourcesUrl | Connected vehicle resources access RESTful URL |
|
overridevirtual |
Handle an UDS request message.
requestData | Request message byte array |
metaInfo | Request message metainfo |
cancellationHandler | Callback to be invoked when the current conversation is cancelled |
Implements ara::diag::routing::RoutableUdsService.