zephyr/samples/drivers/lora/send
Jordan Yates 2cbb8aebce samples: lora: add integration platforms
Add an integration platform to the LoRa samples so that changes to these
applications are checked in the PR CI.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2024-12-19 12:36:43 +01:00
..
src zephyr: bulk update to DT_NODE_HAS_STATUS_OKAY 2024-10-03 17:06:52 +01:00
CMakeLists.txt cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
prj.conf samples, tests: lora: remove CONFIG_SPI|GPIO=y 2024-11-28 20:53:11 +01:00
README.rst doc: :zephyr-app: should point to existing in-tree folders 2024-09-09 13:53:47 -04:00
sample.yaml samples: lora: add integration platforms 2024-12-19 12:36:43 +01:00

.. zephyr:code-sample:: lora-send
   :name: LoRa send
   :relevant-api: lora_api

   Transmit a preconfigured payload every second using the LoRa radio.

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 :zephyr:code-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.

.. zephyr-app-commands::
   :zephyr-app: samples/drivers/lora/send
   :host-os: unix
   :board: b_l072z_lrwan1
   :goals: build flash
   :compact:

Sample Output
=============

.. code-block:: console

    [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!