Giter Site home page Giter Site logo

pxt-iot-lora-node's Introduction

pxt-iot-lora-node

Build Status

Blocks

Initialise LoRa Radio

This block initialises the LoRa Radio module ready for use, it sets up the library and sends the commands to the RAK811 to configure it for use with the LoRaWAN Network.

Currently the Makecode library only supports ABP Mode.

IoTLoRaNode.initialiseRadio(
"Dev Address",
"NWSK",
"AppKey",
spreadingFactors.Seven
)

You must fill out the Device Address, NWSK / Network Session Key & Application Session Key.you can find this from your LoRaWAN Provider. (Such as The Things Network).

Data Adders

These blocks add Data to the payload, the payload is a string variable which gets the correct byte values for the specified sensor with these blocks. Each block can specifiy the "channel" that it is on, this is so when the decoder decodes it the sensor is on the same "channel" each time. Each sensor should be on its own unique channel between one to twenty.

Add Digital Value

This block can add a digital value of either true or false.

IoTLoRaNode.digitalValue(false, channels.One)

TTN will decode this value as a digital value of 1 or 0.

Add Analogue Value

This block can add an analogue value from 0 to 254.

IoTLoRaNode.analogueValue(0, channels.One)

TTN Will decode this value as an analogue in with the decoded value displayed.

Add Temperature Value

This block will add an analogue value similar to the analogue value method. However once decoded will display in degrees C.

IoTLoRaNode.temperatureValue(0, channels.One)

TTN will decode this as a Degrees C value in the decoder.

Add Light Value

Similar to the Analogue & Temperature Values. This formats it as a light level value.

IoTLoRaNode.lightValue(0, channels.One)

TTN will decode this as a light level value in the decoder.

Transmit LoRa Data

This block is then used to transmit the payload, when run it will transmit the entire payload in the buffer.

IoTLoRaNode.loraTransmitPayload()

LoRaWAN Providers

This package is designed to be used currently in LoRaWAN Mode only which means that your node has to be within range of a LoRaWAN Provider and for you to be signed up to that LoRaWAN Provider.

We officially support these two providers and can provide support for them:

  • The Things Network
  • LoRIOT

License

This library is released under the GNU GPL V3 License, you can view the full license in the LICENSE file.

Translations

We aim to with the help of the community translate this package to a variety of languages.

Languages in bold have been translated and then checked by at least one person who speaks that language. Languages not in bold have been translated by us using translation software but requires checking. Languages in Italics are to be translated.

  • French
  • Dutch
  • Italian
  • German
  • Spanish

Meta

Tutorials: Maker Zone Micro:bit Page

Questions? Email us or ask in our Discord Server

Keywords: LoRa, LoRaWAN, The Things Network, Pi Supply

Supported targets

  • for PXT/microbit (The metadata above is needed for package search.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.