|
L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
|
Header of application of the LRWAN Middleware. More...
Go to the source code of this file.
Macros | |
| #define | ACTIVE_REGION LORAMAC_REGION_EU868 |
| #define | APP_TX_DUTYCYCLE 10000 |
| #define | LORAWAN_USER_APP_PORT 2 |
| #define | LORAWAN_SWITCH_CLASS_PORT 3 |
| #define | LORAWAN_DEFAULT_CLASS CLASS_A |
| #define | LORAWAN_DEFAULT_CONFIRMED_MSG_STATE LORAMAC_HANDLER_CONFIRMED_MSG |
| #define | LORAWAN_ADR_STATE LORAMAC_HANDLER_ADR_ON |
| #define | LORAWAN_DEFAULT_DATA_RATE DR_0 |
| #define | LORAWAN_DEFAULT_TX_POWER TX_POWER_0 |
| #define | LORAWAN_DEFAULT_ACTIVATION_TYPE ACTIVATION_TYPE_OTAA |
| #define | LORAWAN_FORCE_REJOIN_AT_BOOT false |
| #define | LORAWAN_APP_DATA_BUFFER_MAX_SIZE 242 |
| #define | LORAWAN_DEFAULT_PING_SLOT_PERIODICITY 4 |
| #define | LORAWAN_DEFAULT_CLASS_B_C_RESP_TIMEOUT 8000 |
Functions | |
| void | LoRaWAN_Init (void) |
| Init Lora Application. | |
| void | systemParams_SetLoRaWanParams () |
| |
Header of application of the LRWAN Middleware.
Copyright (c) 2026 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file lora_app.h.
| #define ACTIVE_REGION LORAMAC_REGION_EU868 |
Definition at line 42 of file lora_app.h.
| #define APP_TX_DUTYCYCLE 10000 |
CAYENNE_LPP is myDevices Application server.
Defines the application data transmission duty cycle. 10s, value in [ms].
Definition at line 54 of file lora_app.h.
Referenced by OnTxPeriodicityChanged().
| #define LORAWAN_ADR_STATE LORAMAC_HANDLER_ADR_ON |
LoRaWAN Adaptive Data Rate
Definition at line 82 of file lora_app.h.
| #define LORAWAN_APP_DATA_BUFFER_MAX_SIZE 242 |
User application data buffer size
Definition at line 111 of file lora_app.h.
| #define LORAWAN_DEFAULT_ACTIVATION_TYPE ACTIVATION_TYPE_OTAA |
LoRaWAN default activation type
Definition at line 100 of file lora_app.h.
Referenced by myLoraWan_Reconnect(), OnStopJoinTimerEvent(), and StopJoin().
| #define LORAWAN_DEFAULT_CLASS CLASS_A |
LoRaWAN default class
Definition at line 71 of file lora_app.h.
| #define LORAWAN_DEFAULT_CLASS_B_C_RESP_TIMEOUT 8000 |
Default response timeout for class b and class c confirmed downlink frames in milli seconds.
The value shall not be smaller than RETRANSMIT_TIMEOUT plus the maximum time on air.
Definition at line 128 of file lora_app.h.
| #define LORAWAN_DEFAULT_CONFIRMED_MSG_STATE LORAMAC_HANDLER_CONFIRMED_MSG |
LoRaWAN default confirm state
Definition at line 76 of file lora_app.h.
| #define LORAWAN_DEFAULT_DATA_RATE DR_0 |
LoRaWAN Default Data Rate
Definition at line 88 of file lora_app.h.
| #define LORAWAN_DEFAULT_PING_SLOT_PERIODICITY 4 |
Default Unicast ping slots periodicity
Definition at line 119 of file lora_app.h.
| #define LORAWAN_DEFAULT_TX_POWER TX_POWER_0 |
LoRaWAN Default Tx output power
Definition at line 95 of file lora_app.h.
| #define LORAWAN_FORCE_REJOIN_AT_BOOT false |
LoRaWAN force rejoin even if the NVM context is restored
Definition at line 106 of file lora_app.h.
| #define LORAWAN_SWITCH_CLASS_PORT 3 |
LoRaWAN Switch class application port
Definition at line 66 of file lora_app.h.
| #define LORAWAN_USER_APP_PORT 2 |
LoRaWAN User application port
Definition at line 60 of file lora_app.h.
| void LoRaWAN_Init | ( | void | ) |
Init Lora Application.
< [31:24] main version
< main byte shift
< [23:16] sub1 version
< sub1 byte shift
< [15:8] sub2 version
< sub2 byte shift
< [7:0] release candidate
< release candidate byte shift
Definition at line 310 of file lora_app.c.
References ActivationType, APP_LOG, APP_VERSION, CFG_SEQ_Task_LmHandlerProcess, CFG_SEQ_Task_LoRaSendOnTxTimerOrButtonEvent, CFG_SEQ_Task_LoRaStopJoinEvent, CFG_SEQ_Task_LoRaStoreContextEvent, EventType, ForceRejoin, JOIN_TIME, LmHandlerCallbacks, LmHandlerParams, LoraInfo_Init(), OnStopJoinTimerEvent(), OnTxTimerEvent(), SendTxData(), StopJoin(), StopJoinTimer, StoreContext(), systemParams_getAppDevEUI(), systemParams_getAppEUI(), systemParams_getAppKey(), TS_OFF, TX_ON_TIMER, TxPeriodicity, TxTimer, and VLEVEL_M.
Referenced by main(), and MX_LoRaWAN_Init().
| void systemParams_SetLoRaWanParams | ( | ) |
Definition at line 300 of file lora_app.c.
References _systemParams, and LmHandlerParams.
Referenced by main().