The latest development version of this page may be more current than this released 3.7.0 version.

LoRa send

Overview

This sample demonstrates how to use the LoRa radio driver to configure the encoding settings and send data over the radio.

Transmitted messages can be received by building and flashing the accompanying LoRa receive sample LoRa receive on another board within range.

Building and Running

Build and flash the sample as follows, changing b_l072z_lrwan1 for your board, where your board has a lora0 alias in the devicetree.

west build -b b_l072z_lrwan1 zephyr/samples/drivers/lora/send
west flash

Sample Output

[00:00:00.531,000] <inf> lora_send: Data sent!
[00:00:01.828,000] <inf> lora_send: Data sent!
[00:00:03.125,000] <inf> lora_send: Data sent!