Add DSMR5 option to protocol.

This commit is contained in:
Johan Bloemberg 2017-05-12 20:30:53 +02:00
parent de5c884d8d
commit efc09df71f
No known key found for this signature in database
GPG Key ID: B1AE6948ED49BB55

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)