8 lines
252 B
Python
Raw Normal View History

2019-10-03 19:33:11 +00:00
from dsmr_parser import telegram_specifications
from dsmr_parser.parsers import TelegramParser
from test.example_telegrams import TELEGRAM_V4_2
2019-10-03 19:33:11 +00:00
parser = TelegramParser(telegram_specifications.V4)
telegram = parser.parse(TELEGRAM_V4_2)
2019-10-03 19:33:11 +00:00
print(telegram)