Skip to content

Commit

Permalink
Add test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
breaker27 committed Oct 14, 2014
1 parent 26f6cec commit cb1ebbe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions host_software/fhem/SHC_parser_test.pl
Expand Up @@ -130,6 +130,14 @@ ($)

# Create message string for sending

$parser->initPacket("GPIO", "DigitalPort", "Set");
$parser->setField("GPIO", "DigitalPort", "On", 1, 0);
$parser->setField("GPIO", "DigitalPort", "On", 1, 2);
$parser->setField("GPIO", "DigitalPort", "On", 1, 4);
$parser->setField("GPIO", "DigitalPort", "On", 1, 6);

print "BaseStation command = " . $parser->getSendString(61) . "\n";

$parser->initPacket("GPIO", "DigitalPinTimeout", "SetGet");
$parser->setField("GPIO", "DigitalPinTimeout", "Pos", 3);
$parser->setField("GPIO", "DigitalPinTimeout", "On", 1);
Expand Down

1 comment on commit cb1ebbe

@Roadyweb
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ach bei mir war das verkehrt... Sorry

Please sign in to comment.