Initial commit

This commit is contained in:
Michael Smith
2018-10-27 18:03:26 +02:00
committed by Michael Smith
commit 19900291f6
5 changed files with 345 additions and 0 deletions

15
README.md Normal file
View File

@@ -0,0 +1,15 @@
# py-cayenne-lpp-decoder
Cayenne Low Power Payload decoder written in Python.
See [Cayenne Low Power Payload Documentation](https://mydevices.com/cayenne/docs/lora/#lora-cayenne-low-power-payload) for more information.
The decoder expects a base64 encoded payload string, commonly used in LoRaWAN implementations.
## Usage
```python
>>> import cayennelpp
>>> print(cayennelpp.lppdecode('A2cBEAVnAP8='))
[{'channel': 3, 'type': 'Temperature Sensor', 'value': 27.2}, {'channel': 5, 'type': 'Temperature Sensor',
'value': 25.5}]
```