Formatting

This commit is contained in:
Nigel Dokter 2017-02-03 22:42:31 +01:00
parent 148bdabc12
commit 46860e04c1

View File

@ -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
---------------