tinygo.org/x/drivers@v0.27.1-0.20240509133757-7dbca2a54349/examples/lora/lorawan/basic-demo/README.md (about) 1 # Simple Lorawan example 2 3 This demo code will connect Lorawan network and send sample uplink message 4 5 You may change your Lorawan keys (AppEUI, DevEUI, AppKEY) in key-default.go 6 7 8 ``` 9 $ tinygo monitor 10 Connected to /dev/ttyACM0. Press Ctrl-C to exit. 11 Lorawan Simple Demo 12 Start Lorawan Join sequence 13 loraConnect: Connected ! 14 ``` 15 16 # Building 17 18 ## Simulator 19 20 ``` 21 tinygo flash -target pico ./examples/lora/lorawan/basic-demo 22 ``` 23 24 ## PyBadge with LoRa Featherwing for EU868 region 25 26 ``` 27 tinygo flash -target pybadge -tags featherwing -ldflags="-X main.reg=EU868" ./examples/lora/lorawan/basic-demo 28 ``` 29 30 ## LoRa-E5 for US915 region 31 32 ``` 33 tinygo flash -target lorae5 -ldflags="-X main.reg=US915" ./examples/lora/lorawan/basic-demo 34 ``` 35 36 37 ## Enable debugging 38 39 You can also enable some debug logs with ldflags : 40 41 ``` 42 $ tinygo build -ldflags="-X 'main.debug=true'" -target=lorae5 43 ``` 44