From efc09df71f3a5480f68b2f3127175f47912b7a5c Mon Sep 17 00:00:00 2001 From: Johan Bloemberg Date: Fri, 12 May 2017 20:30:53 +0200 Subject: [PATCH] Add DSMR5 option to protocol. --- dsmr_parser/clients/protocol.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dsmr_parser/clients/protocol.py b/dsmr_parser/clients/protocol.py index 8f55376..d63a3fc 100644 --- a/dsmr_parser/clients/protocol.py +++ b/dsmr_parser/clients/protocol.py @@ -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)