Update zm_monitor.cpp

pull/3524/head
ovargasp 2022-07-13 11:05:28 -06:00 committed by GitHub
parent 53824fa3da
commit ea73c8b81e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1715,7 +1715,8 @@ bool Monitor::Poll() {
for (auto msg : tev__PullMessagesResponse.wsnt__NotificationMessage) {
if (msg->Topic->__any.text != NULL &&
// need to modify this for something more standardized
std::strstr(msg->Topic->__any.text, "MotionAlarm") &&
// std::strstr(msg->Topic->__any.text, "MotionAlarm") && org. line
std::strstr(msg->Topic->__any.text, "CellMotionDetector") &&
msg->Message.__any.elts != NULL &&
msg->Message.__any.elts->next != NULL &&
msg->Message.__any.elts->next->elts != NULL &&