A OBD service class to handle OBD queries asynchronously. More...
#include <obd_to_doip_converter.h>
Public Member Functions | |
| ObdToDoipConverter (AsyncBsdSocketLib::Poller *poller, std::string ipAddress, uint16_t port) | |
| Constructor. More... | |
| bool | TryGetResponse (const std::vector< uint8_t > &pid, std::vector< uint8_t > &response) const override |
| bool | TryGetResponseAsync (const std::vector< uint8_t > &pid) override |
A OBD service class to handle OBD queries asynchronously.
The class based on the queried PID may convert the query to a UDS message and send it via DoIP to a UDS server.
| application::doip::ObdToDoipConverter::ObdToDoipConverter | ( | AsyncBsdSocketLib::Poller * | poller, |
| std::string | ipAddress, | ||
| uint16_t | port | ||
| ) |
Constructor.
| poller | Global poller for network communication |
| ipAddress | DoIP server IPv4 address |
| port | DoIP server TCP listening port number |
| std::runtime_error | Throws when the DoIP client initialization failed |