2022-10-25 00:26:18 +08: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:
|
2022-10-25 00:31:19 +08:00
|
|
|
|
|
|
|
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
|
2023-05-17 21:57:24 +08:00
|
|
|
:gen-args: -DEXTRA_CONF_FILE=overlay-clock-sync.conf
|
2022-10-25 00:31:19 +08:00
|
|
|
:compact:
|