diff --git a/coworker/mqtt_service.php b/coworker/mqtt_service.php index 8b1e515..c0e47ff 100644 --- a/coworker/mqtt_service.php +++ b/coworker/mqtt_service.php @@ -74,7 +74,7 @@ function procmsg($topic, $msg) { $data = array('topic' => $topic, 'msg' => $msg, 'ck' => md5($topic.'altob'.$msg)); - if($topic == 'altob.888.mqtt') + if(in_array($topic, array('altob.888.mqtt'))) { // dispatch $ch = curl_init();