2013-08-08 23:31:32 +02:00
|
|
|
<?php
|
|
|
|
require_once dirname(__FILE__) . '/class.EnerGenieSwitcher.php';
|
2013-08-10 16:41:06 +02:00
|
|
|
$egs = new EnerGenieSwitcher('1.2.3.4', 'my-password');
|
2013-08-08 23:31:32 +02:00
|
|
|
$egs->doSwitch(array(
|
|
|
|
1 => EnerGenieSwitcher::ON,
|
|
|
|
2 => EnerGenieSwitcher::OFF,
|
|
|
|
3 => EnerGenieSwitcher::ON,
|
|
|
|
4 => EnerGenieSwitcher::OFF
|
|
|
|
));
|