aboutsummaryrefslogtreecommitdiffstats
path: root/examples/basic
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-04-09 09:02:52 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-04-17 11:42:07 +0200
commit29de76e9beac2a8e7ffcd1ccba07a927df1f2bcc (patch)
tree7e4c60d31d0283a0e67dba8b9ae11e35e9e52c02 /examples/basic
parentddd4374f35df2d8b8e9b4ecf4890abba6fab3734 (diff)
Add saving of diagnostic messages information
Add saving of diagnostic messages receive state, last value, and timestamp associated to it. Add methods to get/set these information. Add initialisation for added atributes. Add boolean to set receive state at initialisation. Generate all 'diagnostic-message.cpp' containing diagnostic messages to add receive state initialisation. Bug-AGL: SPEC-1347 Change-Id: Iee82ca3b5f79fd267717ae074d5456b8cbc1c377 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'examples/basic')
-rw-r--r--examples/basic/application-generated.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/basic/application-generated.cpp b/examples/basic/application-generated.cpp
index 88ee94b9..1cdf67c3 100644
--- a/examples/basic/application-generated.cpp
+++ b/examples/basic/application-generated.cpp
@@ -145,7 +145,8 @@ application_t::application_t()
1.00000f,
handleObd2Pid,
nullptr,
- true
+ true,
+ false
})}
, {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
12,
@@ -156,7 +157,8 @@ application_t::application_t()
1.00000f,
nullptr,
nullptr,
- true
+ true,
+ false
})}
, {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
6,
@@ -167,7 +169,8 @@ application_t::application_t()
1.00000f,
handleMyDiagRequest,
nullptr,
- true
+ true,
+ false
})}
} // end diagnostic_messages_ vector