########################################################################### # $Id$ # generisches fhem Modul für Geräte mit Modbus-Interface # verwendet Modbus.pm als Basismodul für die eigentliche Implementation des Protokolls. # # This file is part of fhem. # # Fhem is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # Fhem is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with fhem. If not, see . # ############################################################################## package ModbusAttr; use strict; use warnings; use GPUtils qw(:all); use Exporter ('import'); our @EXPORT_OK = qw(); our %EXPORT_TAGS = (all => [@EXPORT_OK]); BEGIN { GP_Import( qw( LoadModule )); GP_Export( qw( Initialize )); }; ##################################### sub Initialize { my ($modHash) = @_; LoadModule "Modbus"; Modbus::InitializeLD($modHash); # Generic function of the Modbus module does the rest $modHash->{AttrList} = $modHash->{AttrList} . " " . # Standard Attributes like IODEv etc $modHash->{ObjAttrList} . " " . # Attributes to add or overwrite parseInfo definitions $modHash->{DevAttrList}; # Attributes to add or overwrite devInfo definitions return; } 1; =pod =item device =item summary module for Modbus (as master, slave, relay, or for passive listening) =item summary_DE Modul für Modbus (als Master, Slave, Relay oder zum Mitlesen) =begin html

ModbusAttr

=end html =cut