Merge pull request #23 from aequitas/dsmr5

Add DSMR5 option to protocol.
This commit is contained in:
Nigel Dokter 2017-05-12 21:34:06 +02:00 committed by GitHub
commit 1dca6ab396

View File

@ -23,6 +23,9 @@ def create_dsmr_protocol(dsmr_version, telegram_callback, loop=None):
elif dsmr_version == '4':
specification = telegram_specifications.V4
serial_settings = SERIAL_SETTINGS_V4
elif dsmr_version == '5':
specification = telegram_specifications.V5
serial_settings = SERIAL_SETTINGS_V4
else:
raise NotImplementedError("No telegram parser found for version: %s",
dsmr_version)