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

Implemented 9 out of 10 service functions

parent 2d74207f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
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