9 lines
288 B
Python
Raw Normal View History

2019-10-03 21:33:11 +02:00
from dsmr_parser import telegram_specifications
from dsmr_parser.objects import Telegram
2019-10-03 21:33:11 +02:00
from dsmr_parser.parsers import TelegramParser
2019-11-25 01:37:48 +01:00
from example_telegrams import TELEGRAM_V4_2
2019-10-03 21:33:11 +02:00
parser = TelegramParser(telegram_specifications.V4)
telegram = parser.parse(TELEGRAM_V4_2)
2019-10-03 21:33:11 +02:00
print(telegram)