You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
939 B
47 lines
939 B
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Services\CameraDeviceService;
|
|
use Illuminate\Console\Command;
|
|
|
|
/**
|
|
* 检测设备状态信息
|
|
*/
|
|
class CheckEquipmentStatus extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'app:check-equipment-status';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Command description';
|
|
|
|
protected string $sysUrl;
|
|
|
|
public function __construct() {
|
|
parent::__construct();
|
|
$this->sysUrl = env('sys_url', '');
|
|
}
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*/
|
|
public function handle()
|
|
{
|
|
// 获取所有设备信息
|
|
$ip = '192.168.66.16';
|
|
$this->service = new CameraDeviceService($ip);
|
|
|
|
// 通过设备信息获取设备状态
|
|
|
|
// 返回告诉设备状态情况
|
|
}
|
|
}
|
|
|