Skip to main content

lora sx126x rx/tx library

Project description

sx126x

install

pip3 install sx126x

example

receiver

from sx126x.SX126X import SX126X
from time import sleep
from asyncio import run


async def main():
    node = SX126X("/dev/ttyUSB0")
    tx, rx, freq, data = await node.receive()
    while not data:
        tx, rx, freq, data = await node.receive()
        sleep(1)

    print(tx, rx, freq, data)


if __name__ == '__main__':
    run(main())

sender

from sx126x.SX126X import SX126X
from asyncio import run


async def main():
    node = SX126X("/dev/ttyUSB1", 2)
    await node.send_to(1, 868, b"Hello\0")


if __name__ == '__main__':
    run(main())

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

sx126x-1.0.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file sx126x-1.0.tar.gz.

File metadata

  • Download URL: sx126x-1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for sx126x-1.0.tar.gz
Algorithm Hash digest
SHA256 807d781c15d476b0e6f1cbb87fe46956a50baf98554cfdf8f05d651c2be32b03
MD5 8df7a1d9894791686d0e775cc2d52350
BLAKE2b-256 cea62d0ade224ffe70f057063003ee66b671c29c8de05d5e83dec9d2f56da1e3

See more details on using hashes here.

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