38 lines
788 B
PHP
38 lines
788 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
class MqttPenwuPlan extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'mqtt:penwu-plan';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'MQTT 喷雾控制';//-todo
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function handle()
|
|
{
|
|
//获取所有喷雾监控点,对应的自动喷雾配置
|
|
//获取当前时间(时,分)
|
|
//判断该配置是否开启
|
|
//判断当前该情况,并判断时间,决定开启,关闭,不作为;
|
|
|
|
return Command::SUCCESS;
|
|
}
|
|
}
|