basic-demo

command
v0.0.0-...-0087ba1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

README

Simple Lorawan example

This demo code will connect Lorawan network and send sample uplink message

You may change your Lorawan keys (AppEUI, DevEUI, AppKEY) in key-default.go

$ tinygo monitor
Connected to /dev/ttyACM0. Press Ctrl-C to exit.
Lorawan Simple Demo
Start Lorawan Join sequence
loraConnect: Connected !

Building

Simulator

tinygo flash -target pico ./examples/lora/lorawan/basic-demo

PyBadge with LoRa Featherwing

tinygo flash -target pybadge -tags featherwing ./examples/lora/lorawan/basic-demo

LoRa-E5

tinygo flash -target lorae5 ./examples/lora/lorawan/basic-demo

Enable debugging

You can also enable some debug logs with ldflags :

$ tinygo build -ldflags="-X 'main.debug=true'" -target=lorae5

Documentation

Overview

Simple code for connecting to Lorawan network and uploading sample payload

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL