lorawan: Basic implementation of Lorawan Regional Settings and EU868/AU915 regions

This commit is contained in:
Olivier Fauchon
2023-01-12 22:46:04 +01:00
committed by Ron Evans
parent e6cde8f7ae
commit 78cc1afe46
8 changed files with 125 additions and 14 deletions
+3
View File
@@ -15,6 +15,7 @@ import (
"tinygo.org/x/drivers/examples/lora/lorawan/common"
"tinygo.org/x/drivers/lora"
"tinygo.org/x/drivers/lora/lorawan"
"tinygo.org/x/drivers/lora/lorawan/region"
)
// change these to test a different UART or pins if available
@@ -44,6 +45,8 @@ func main() {
otaa = &lorawan.Otaa{}
lorawan.UseRadio(radio)
lorawan.UseRegionSettings(region.EU868())
for {
if uart.Buffered() > 0 {
data, _ := uart.ReadByte()