############################################## ############################################## # $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 . # ############################################################################## # Changelog: # # 2015-03-09 initial release # 2015-07-22 added documentation for new features introduced in the base module 98_Modbus.pm # that can be used here. # 2016-04-16 Load Modbus base module instead of require - avoids messages when fhem reloads Modbus # because a serial Modbus device is defined afterwards # 2016-06-18 added documentation for alignTime and enableControlSet (implemented in the base module 98_Modbus.pm) # 2016-07-07 added documentatoin for nextOpenDelay # 2016-10-02 fixed typo in documentation (showget has to be showGet) # 2016-11-26 added missing documentation pieces # 2016-12-18 documentation added # 2016-12-24 documentation added # 2017-01-02 allowShortResponses documented # 2017-01-25 documentation for ignoreExpr # 2017-03-12 fixed documentation for logical attrs that were wrongly defined as physical ones # 2017-07-15 added documentation for new attributes # 2017-07-25 documentation for data type attributes # 2018-08-24 started documenting the new features of the base Modbus module version 4 # 2018-11-10 fixed doku for defSetexpr # 2019-01-29 added doku for defSet and defHint # 2019-01-30 added once as option for pollDelay in doku # 2019-04-05 put require for devio to top # package main; use strict; use warnings; ##################################### sub ModbusAttr_Initialize($) { my ($modHash) = @_; require "$attr{global}{modpath}/FHEM/DevIo.pm"; #require "$attr{global}{modpath}/FHEM/98_Modbus.pm"; LoadModule "Modbus"; 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 =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