Skip to content

Commit

Permalink
[modbus_tcp plugin]: fixed issue with writing without modBusObjectType
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan73 committed Jun 2, 2024
1 parent 39fadf9 commit f9b31b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modbus_tcp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,8 @@ def update_item(self, item, caller=None, source=None, dest=None):
self._slaveUnitRegisterDependend = True
if self.has_iattr(item.conf, AttrObjectType):
objectType = self.get_iattr_value(item.conf, AttrObjectType)
else:
return
# else:
# self.logger.debug(f'update_item:{item} default modBusObjectTyp: {objectType}')

reg = str(objectType) # Dict-key: HoldingRegister.528.1 *** objectType.regAddr.slaveUnit ***
reg += '.'
Expand Down
3 changes: 2 additions & 1 deletion modbus_tcp/user_doc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ siehe auch example.yaml
Changelog
---------
V1.0.12 bei wiederholten Verbindungsproblemen Ausgabe vom Logger reduziert
V1.0.12 Problem beim Schreiben ohne modBusObjectTyp behoben
bei wiederholten Verbindungsproblemen Ausgabe vom Logger reduziert
Verbindungstop mit supend/resume steuerbar

V1.0.11 Verbesserung Umwandlung Byte/Wordorder in Endian-Konstante
Expand Down

0 comments on commit f9b31b8

Please sign in to comment.