hiworld/laravel-ctwing is a Laravel package for ctwing api for laravel.
It currently has 1 GitHub stars and 13 downloads on Packagist (latest version v1.1).
Install it with composer require hiworld/laravel-ctwing.
Discover more Laravel packages by hiworld
or browse all Laravel packages to compare alternatives.
Last updated
目前只完成了设备列表和下发指令的功能
composer require hiworld/laravel-ctwing
php artisan vendor:publish --provider="Hiworld\\CTWing\\CTWingServiceProvider"
.env 文件
CTWING_BASE_URL=
CTWING_TIME_URL=
CTWING_APP_KEY=
CTWING_APP_SECRET=
CTWING_MASTER_KEY=
DeviceManagement使用:
use Hiworld\CTWing\AepWork;
$productId = '';
$app = AepWork::DeviceManagement();
$app->QueryDeviceList($productId)
DeviceCommand使用:
use Hiworld\CTWing\AepWork;
$body = [];
$app = AepWork::DeviceCommand();
$response = $app->CreateCommand($body)
MIT