fixed
This commit is contained in:
parent
845cc533f6
commit
bc52b30165
|
@ -18,8 +18,8 @@ class RemoteRequestLogic extends BaseLogic
|
|||
if (!empty($airDevice)) {
|
||||
$airMonitor = self::requestMqtt($airDevice);
|
||||
if (!empty($airMonitor)) {
|
||||
$datas['ambient_temperature'] = $airMonitor[1][2];
|
||||
$datas['ambient_humidity'] = $airMonitor[1][3];
|
||||
$datas['ambient_temperature'] = $airMonitor[1][1];
|
||||
$datas['ambient_humidity'] = $airMonitor[1][2];
|
||||
} else {
|
||||
$datas['ambient_temperature'] = 0;
|
||||
$datas['ambient_humidity'] = 0;
|
||||
|
|
Loading…
Reference in New Issue