README.rst
1.. zephyr:code-sample:: lora-send
2 :name: LoRa send
3 :relevant-api: lora_api
4
5 Transmit a preconfigured payload every second using the LoRa radio.
6
7Overview
8********
9
10This sample demonstrates how to use the LoRa radio driver to configure
11the encoding settings and send data over the radio.
12
13Transmitted messages can be received by building and flashing the accompanying
14LoRa receive sample :zephyr:code-sample:`lora-receive` on another board within
15range.
16
17Building and Running
18********************
19
20Build and flash the sample as follows, changing ``b_l072z_lrwan1`` for
21your board, where your board has a ``lora0`` alias in the devicetree.
22
23.. zephyr-app-commands::
24 :zephyr-app: samples/drivers/lora/send
25 :host-os: unix
26 :board: b_l072z_lrwan1
27 :goals: build flash
28 :compact:
29
30Sample Output
31=============
32
33.. code-block:: console
34
35 [00:00:00.531,000] <inf> lora_send: Data sent!
36 [00:00:01.828,000] <inf> lora_send: Data sent!
37 [00:00:03.125,000] <inf> lora_send: Data sent!
38