LaravelPackages.net
Acme Inc.
Toggle sidebar
hiworld/laravel-ctwing

CTWing Api for Laravel

13
1
v1.1
About hiworld/laravel-ctwing

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

CTwing for Laravel

目前只完成了设备列表和下发指令的功能

框架要求

  • Laravel >=10.0

安装

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)

LICENSE

MIT

Star History Chart