Update zm_monitor.cpp

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

View File

@ -1714,6 +1714,7 @@ bool Monitor::Poll() {
Debug(1, "Got Good Response! %i", result);
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") &&
msg->Message.__any.elts != NULL &&
msg->Message.__any.elts->next != NULL &&