Skip to content

Commit

Permalink
docs: add note for LppFrame.to_bytes() in README
Browse files Browse the repository at this point in the history
  • Loading branch information
smlng committed Oct 12, 2021
1 parent c1488c0 commit cabca5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ frame.add_humidity(6, 34.5)
buffer = bytes(frame)
```

**Note:** MicroPython does not support `bytes(frame)` utilising the internal
method `LppFrame.__bytes__(self)` (yet).
Hence, you need to use `LppFrame.to_bytes(self)` instead.

***Decoding***

```Python
Expand Down

0 comments on commit cabca5c

Please sign in to comment.