diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 02:18:00 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 17:21:57 +0100 |
commit | 1ee222a7250896fc7f2e5fb1dc50a7466d81b741 (patch) | |
tree | 7f73cc373b73314962ef4c774657b0842d3f9e94 /src/diagnostic/diagnostic-message.hpp | |
parent | f3ddfa1c2c4a9ac54f129a63dc9673afdc87bb9e (diff) |
Implement check of supported diagnostic PID.
Supported boolean member about diagnostic messages is now used. When
a response is received, completed but not successful, then set the diagnostic
message as not supported and clean the request from the queue.
Subscription remains for now, not cool but will be fix soon.
Change-Id: Ia5dc78d4a770f80f144724f4df6eabd2ffd4b8cc
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/diagnostic/diagnostic-message.hpp')
-rw-r--r-- | src/diagnostic/diagnostic-message.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/diagnostic/diagnostic-message.hpp b/src/diagnostic/diagnostic-message.hpp index 4feceb4b..ae37d7d7 100644 --- a/src/diagnostic/diagnostic-message.hpp +++ b/src/diagnostic/diagnostic-message.hpp @@ -70,6 +70,9 @@ class diagnostic_message_t { float get_frequency() const; DiagnosticResponseDecoder get_decoder() const; DiagnosticResponseCallback get_callback() const; + bool get_supported() const; + + void set_supported(bool value); const DiagnosticRequest build_diagnostic_request(); |