Skip to main content

LoRaWAN network servers and devices codec library

Project description

pyLibLoRaWAN - Python library to interface with LoRaWAN devices and network servers

Introduction

This library aims to enable LoRaWAN the Home Assistant integration to interact with LoRaWAN network servers and devices, but can be reused for other purposes.

Compatibility list

Network servers

Devices

Usage

Usage - Network servers

Import the network server object then call the input normalization formatter function:

from pyliblorawan.network_servers.ttn import TTN

ns = TTN(**kwargs)
uplink = ns.normalize_uplink(ttn_uplink_dict)

Some other functions are available:

  • list_devices: List devices in the authorized scope

Usage - Devices

Import the device object then call the payload parser function:

from pyliblorawan.devices.browan.tbms100 import TBMS100

device = TBMS100()
await tbms100.parse_uplink(uplink_object)

Test

Install requirements.txt and requirements-dev.txt then:

python3 -m pytest -vv --cov=. --cov-config=tests/.coveragerc tests/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyliblorawan-0.4.0.tar.gz (25.9 kB view hashes)

Uploaded Source

Built Distribution

pyliblorawan-0.4.0-py3-none-any.whl (25.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page