experimentation file
This commit is contained in:
parent
c36f68a884
commit
f9e9e70771
14
test/experiment_telegram.py
Normal file
14
test/experiment_telegram.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
from decimal import Decimal
|
||||||
|
import datetime
|
||||||
|
import unittest
|
||||||
|
import pytz
|
||||||
|
from dsmr_parser import obis_references as obis
|
||||||
|
from dsmr_parser import telegram_specifications
|
||||||
|
from dsmr_parser.exceptions import InvalidChecksumError, ParseError
|
||||||
|
from dsmr_parser.objects import CosemObject, MBusObject, Telegram
|
||||||
|
from dsmr_parser.parsers import TelegramParser
|
||||||
|
from test.example_telegrams import TELEGRAM_V4_2
|
||||||
|
parser = TelegramParser(telegram_specifications.V4)
|
||||||
|
telegram = Telegram(TELEGRAM_V4_2, parser, telegram_specifications.V4)
|
||||||
|
|
||||||
|
print(telegram)
|
Loading…
Reference in New Issue
Block a user