diff --git a/src/Services/EventActionService.cpp b/src/Services/EventActionService.cpp index 3dc67497705135ebdb5197b4aa7f2e4d53bb3fa9..c26e07c7a5cc242caf38fe894341a1597b23a5b4 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); }