Skip to main content

No project description provided

Project description

lorawandevgw (LoRaWAN XploreGateway Python API)

Esta libreria se emplea para desarrollar dispositivos virtuales LoRaWAN para el servidor XploreGateway

lorawandevgw implements the basic send/receive features of LoRaWAN protocol v. 1.1.X

For mock LoRa WAN end Nodes.

Install

pip install lorawandevgw
pip3 install lorawandevgw

Get Start

The first step is download and install the LoRaWAN XploreGateway. Next we can continue with the follow Python Script:

from lorawandevgw import EndNode
import time
class MyExampleDevice(EndNode.EndNode):
    def __init__(self):
        super(MyExampleDevice, self).__init__(
        config=properties)
    # LoRa WAN downlink message handling
    def onRadioMessage(self,message):
        print(message)
    # Main Loop
    def loop(self):
        self.sendUnconfirmedMessage('{"hello":"world"}')
        time.sleep(5)
properties = {
    "devEUI":"0ADA123D04299F03",
    "appEUI":"70BCDF7ED0026123",
    "appKey":"ABCDEFGHI102930415F637989F3B7FFB",
    "devGateway":"localhost:1883"
}
devi = MyExampleDevice()
python3 MyExampleDevice.py

Configuration

  • devEUI : (mandatory)
  • appEUI : (mandatory)
  • appKey : (mandatory)
  • devGateway : (mandatory)

Functions and modules

  • self.sendUnconfirmedMessage(<message>): Sends Unconfirmed Data Up message to LoRaWAN.

Library Dependencies

Features v. 0.1.0

  • OTAA Device Activation. (Join Request, Join Accept)
  • Unconfirmed Data Up.
  • Unconfirmed Data Down.

Compile

project=$1
cd $project"/"$project
python3 setup.py bdist_wheel
python3 -m pip install "dist/"$project"-0.0.1-py3-none-any.whl" --upgrade

Project details


Release history Release notifications

Download files

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

Files for lorawandevgw, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size lorawandevgw-0.0.1-py3-none-any.whl (14.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size lorawandevgw-0.0.1.tar.gz (11.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page