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 import telegram_specifications | ||||||
|      from dsmr_parser.parsers import TelegramParser |      from dsmr_parser.parsers import TelegramParser | ||||||
|  | 
 | ||||||
|      telegram_str = ( |      telegram_str = ( | ||||||
|          '/ISk5\2MT382-1000\r\n' |          '/ISk5\2MT382-1000\r\n' | ||||||
|          '\r\n' |          '\r\n' | ||||||
| @ -77,12 +78,12 @@ into a dictionary. | |||||||
|          '0-1:24.4.0(1)\r\n' |          '0-1:24.4.0(1)\r\n' | ||||||
|          '!\r\n' |          '!\r\n' | ||||||
|      ) |      ) | ||||||
|  | 
 | ||||||
|      parser = TelegramParser(telegram_specifications.V3) |      parser = TelegramParser(telegram_specifications.V3) | ||||||
|      |      | ||||||
|      telegram = parser.parse(telegram_str) |      telegram = parser.parse(telegram_str) | ||||||
|      print(telegram)  # see 'Telegram object' docs below |      print(telegram)  # see 'Telegram object' docs below | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| Telegram object | Telegram object | ||||||
| --------------- | --------------- | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user