2016-05-17 12:38:03 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/// Require Composer AutoLoader
|
|
|
|
require_once '../../vendor/autoload.php';
|
|
|
|
|
|
|
|
/// Define our application
|
2016-05-19 20:51:24 +02:00
|
|
|
$App = new \alphayax\freebox\utils\Application( 'com.alphayax.freebox.config', 'PHP API Example (Config)', '1.0.0');
|
2016-05-17 12:38:03 +02:00
|
|
|
$App->authorize();
|
|
|
|
$App->openSession();
|
|
|
|
|
2016-05-24 22:37:05 +02:00
|
|
|
// LCD Configuration
|
2016-05-17 12:38:03 +02:00
|
|
|
$LCDService = new \alphayax\freebox\api\v3\services\config\LCD( $App);
|
|
|
|
$a = $LCDService->getConfiguration();
|
|
|
|
var_dump( $a);
|
|
|
|
|
|
|
|
$a->setBrightness( 10);
|
|
|
|
$b = $LCDService->setConfiguration( $a);
|
|
|
|
var_dump( $b);
|