Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
- committed Oct 14, 2022
1 parent d332966 commit 863ec15
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![Tests Status](https://github.com/spacemanspiff2007/SmlLib/workflows/Tests/badge.svg)](https://github.com/spacemanspiff2007/SmlLib/actions?query=workflow%3ATests)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/SmlLib)](https://pypi.org/project/smllib/)
[![PyPI](https://img.shields.io/pypi/v/SmlLib)](https://pypi.org/project/smllib/)
[![Downloads](https://pepy.tech/badge/SmlLib)](https://pepy.tech/project/SmlLib/month)
[![Downloads](https://pepy.tech/badge/SmlLib)](https://pepy.tech/project/SmlLib)


_A SML (Smart Message Language) library_
Expand All @@ -25,6 +25,11 @@ sml_frame = stream.get_frame()
if sml_frame is None:
print('Bytes missing')

# Add more bytes, once it's a complete frame the SmlStreamReader will
# return the frame instead of None
stream.add(b'BytesFromSerialPort')
sml_frame = stream.get_frame()

# Shortcut to extract all values without parsing the whole frame
obis_values = sml_frame.get_obis()

Expand Down

0 comments on commit 863ec15

Please sign in to comment.