2019-10-03 21:33:11 +02:00
|
|
|
from dsmr_parser import telegram_specifications
|
2020-02-02 22:12:25 +01:00
|
|
|
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)
|
2023-01-14 13:39:44 +01:00
|
|
|
telegram = parser.parse(TELEGRAM_V4_2)
|
2019-10-03 21:33:11 +02:00
|
|
|
|
2020-02-02 22:12:25 +01:00
|
|
|
print(telegram)
|