zephyr/samples/subsys/lorawan/class_a
Jordan Yates 41d83d7ea2 lora: compile drivers based on devicetree
Similar to the changes made in #48048, compile in the appropriate lora
modem driver when `CONFIG_LORA=y`. The `LORA_SX12XX` symbol has no
use now so remove. LoRa and LoRaWAN subsystems are still marked as
unstable so no additional deprecation cycle is needed.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2023-03-31 09:20:22 +02:00
..
src samples: subsys: lorawan: class_a: add clock sync option 2023-01-23 10:05:49 +00:00
CMakeLists.txt
overlay-clock-sync.conf samples: subsys: lorawan: class_a: add clock sync option 2023-01-23 10:05:49 +00:00
prj.conf lora: compile drivers based on devicetree 2023-03-31 09:20:22 +02:00
README.rst samples: subsys: lorawan: class_a: add clock sync option 2023-01-23 10:05:49 +00:00
sample.yaml samples: subsys: lorawan: class_a: add clock sync option 2023-01-23 10:05:49 +00:00

.. _lorawan_class_a_sample:

LoRaWAN Class A Sample
######################

Overview
********

A simple application to demonstrate the LoRaWAN subsystem of Zephyr.

Building and Running
********************

This sample can be found under
:zephyr_file:`samples/subsys/lorawan/class_a` in the Zephyr tree.

Before building the sample, make sure to select the correct region in the
``prj.conf`` file.

The following commands build and flash the sample.

.. zephyr-app-commands::
   :zephyr-app: samples/subsys/lorawan/class_a
   :board: nucleo_wl55jc
   :goals: build flash
   :compact:

Extended Configuration
**********************

This sample can be configured to run the application-layer clock
synchronization service in the background.

The following commands build and flash the sample with clock synchronization
enabled.

.. zephyr-app-commands::
   :zephyr-app: samples/subsys/lorawan/class_a
   :board: nucleo_wl55jc
   :goals: build flash
   :gen-args: -DOVERLAY_CONFIG=overlay-clock-sync.conf
   :compact: