|
@@ -118,7 +118,7 @@ function lampMqttCmd($sendTopic,$backTopic,$sendData,$timeout = 5,$seq = ''){
|
|
$true = $mqtt->proc();
|
|
$true = $mqtt->proc();
|
|
if (!empty($seq) && $true != 1){
|
|
if (!empty($seq) && $true != 1){
|
|
$res = unpack('H*', $true['msg']);
|
|
$res = unpack('H*', $true['msg']);
|
|
- if (substr($res[1], 0,4) != strtolower($seq) && substr(substr($res[1], 0,4), -2).substr(substr($res[1], 0,4), 0,2) != strtolower($seq)) $true = 1;
|
|
|
|
|
|
+ if (substr($res[1], 0,2) != strtolower($seq)) $true = 1;
|
|
}
|
|
}
|
|
if (time() - $t >= $timeout) {
|
|
if (time() - $t >= $timeout) {
|
|
return '';
|
|
return '';
|