Skip to content

Commit

Permalink
Merge pull request #641 from jsiddall/add_MYS_MULTIMETER
Browse files Browse the repository at this point in the history
Updates to add MYS_MULTIMETER
  • Loading branch information
hplato authored Dec 4, 2016
2 parents 46c5408 + 600c68f commit abd43a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/read_table_A.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1544,6 +1544,13 @@ sub read_table_A {
$other = join ', ', ( map { "'$_'" } @other ); # Quote data
$object = "MySensors::Humidity($address, '$long_name', $parent, $other)";
}
elsif ( $type eq "MYS_MULTIMETER" ) {
require 'MySensors.pm';
my ( $parent, $long_name );
( $address, $name, $long_name, $parent, $grouplist, @other ) = @item_info;
$other = join ', ', ( map { "'$_'" } @other ); # Quote data
$object = "MySensors::Multimeter($address, '$long_name', $parent, $other)";
}

#-------------- AD2 Objects -----------------
elsif ( $type eq "AD2_INTERFACE" ) {
Expand Down

0 comments on commit abd43a8

Please sign in to comment.