From d93fbc55ee5f892761abd18abdaf31dbfa5f9225 Mon Sep 17 00:00:00 2001 From: athatheocsd <athatheo@csd.auth.gr> Date: Tue, 25 Dec 2018 20:12:27 +0200 Subject: [PATCH] Implemented 9 out of 10 service functions --- src/Services/EventActionService.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Services/EventActionService.cpp b/src/Services/EventActionService.cpp index 3dc67497..c26e07c7 100644 --- a/src/Services/EventActionService.cpp +++ b/src/Services/EventActionService.cpp @@ -138,14 +138,20 @@ void EventActionService::requestEventActionDefinitionStatus(Message message) { // TC[19,6] if (message.messageType == 6 && message.packetType == Message::TC && message.serviceType == 19) { - + eventActionStatusReport(); } } void EventActionService::eventActionStatusReport() { // TM[19,7] Message report = createTM(7); - + for (uint16_t i = 0; i < 256; i++) { + if (eventActionDefinitionArray[i].empty == 0) { + report.appendEnum16(eventActionDefinitionArray[i].applicationId); + report.appendEnum16(eventActionDefinitionArray[i].eventDefinitionID); + report.appendUint8(stateOfEventAction[i]); + } + } storeMessage(report); } -- GitLab