diff --git a/fhem/FHEM/98_ModbusAttr.pm b/fhem/FHEM/98_ModbusAttr.pm new file mode 100755 index 000000000..df5844c65 --- /dev/null +++ b/fhem/FHEM/98_ModbusAttr.pm @@ -0,0 +1,248 @@ +############################################## +############################################## +# $Id: 98_ModbusAttr.pm +# +# 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 . +# +############################################################################## +# Changelog: +# +# 2015-03-09 initial release +# + +package main; +use strict; +use warnings; + + +##################################### +sub +ModbusAttr_Initialize($) +{ + my ($modHash) = @_; + + require "$attr{global}{modpath}/FHEM/98_Modbus.pm"; + + ModbusLD_Initialize($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 +} + + +1; + +=pod +=begin html + + +

ModbusAttr

+ + +=end html +=cut