Skip to content

Commit

Permalink
Update outstation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
singha42 committed Dec 13, 2019
1 parent f3af3a8 commit 8ebd28a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dnp3/service/dnp3/outstation.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def start(self):
db_config = self.stack_config.dbConfig
_log.debug(db_config)
for point in self.get_agent().point_definitions.all_points():
_log.debug("Adding Point: {}".format(point))
#_log.debug("Adding Point: {}".format(point))
# print(point)
if point.point_type == 'Analog Input':
cfg = db_config.analog[int(point.index)]
Expand Down Expand Up @@ -296,7 +296,7 @@ def apply_update(cls, value, index):
:param value: An instance of Analog, Binary, or another opendnp3 data value.
:param index: (integer) Index of the data definition in the opendnp3 database.
"""
_log.debug('Recording DNP3 {} measurement, index={}, value={}'.format(type(value).__name__, index, value.value))
#_log.debug('Recording DNP3 {} measurement, index={}, value={}'.format(type(value).__name__, index, value.value))
max_index = cls.get_outstation_config().get('database_sizes', 10000)
if index > max_index:
raise ValueError('Attempt to set a value for index {} which exceeds database size {}'.format(index,
Expand Down

0 comments on commit 8ebd28a

Please sign in to comment.