Formatting
This commit is contained in:
parent
148bdabc12
commit
46860e04c1
@ -53,6 +53,7 @@ into a dictionary.
|
||||
|
||||
from dsmr_parser import telegram_specifications
|
||||
from dsmr_parser.parsers import TelegramParser
|
||||
|
||||
telegram_str = (
|
||||
'/ISk5\2MT382-1000\r\n'
|
||||
'\r\n'
|
||||
@ -77,12 +78,12 @@ into a dictionary.
|
||||
'0-1:24.4.0(1)\r\n'
|
||||
'!\r\n'
|
||||
)
|
||||
|
||||
parser = TelegramParser(telegram_specifications.V3)
|
||||
|
||||
telegram = parser.parse(telegram_str)
|
||||
print(telegram) # see 'Telegram object' docs below
|
||||
|
||||
|
||||
Telegram object
|
||||
---------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user