Skip to content
Snippets Groups Projects
Commit 52ce85dc authored by athatheocsd's avatar athatheocsd
Browse files

added another observable

parent a3e1adda
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,11 @@ public:
uint16_t disabledEventsCount;
uint16_t lastInformativeEventReportID;
uint16_t lastLowSeverityReportID;
uint16_t lastMediumSeverityReportID;
uint16_t lastHighSeverityReportID;
EventReportService() {
stateOfEvents.set();
serviceType = 5;
......
......@@ -12,6 +12,7 @@ void EventReportService::informativeEventReport(Event eventID, const uint8_t *da
Message report = createTM(1);
report.appendEnum16(eventID);
report.appendString(length, data);
lastInformativeEventReportID = static_cast<uint16_t >(eventID);
storeMessage(report);
}
......@@ -24,6 +25,7 @@ EventReportService::lowSeverityAnomalyReport(Event eventID, const uint8_t *data,
Message report = createTM(2);
report.appendEnum16(eventID);
report.appendString(length, data);
lastLowSeverityReportID = static_cast<uint16_t >(eventID);
storeMessage(report);
}
......@@ -35,6 +37,7 @@ void EventReportService::mediumSeverityAnomalyReport(Event eventID,
Message report = createTM(3);
report.appendEnum16(eventID);
report.appendString(length, data);
lastMediumSeverityReportID = static_cast<uint16_t >(eventID);
storeMessage(report);
}
......@@ -47,6 +50,7 @@ EventReportService::highSeverityAnomalyReport(Event eventID, const uint8_t *data
Message report = createTM(4);
report.appendEnum16(eventID);
report.appendString(length, data);
lastHighSeverityReportID = static_cast<uint16_t >(eventID);
storeMessage(report);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment