|
L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
|
#include "stm32wlxx_hal.h"#include "LmHandlerTypes.h"#include "LmHandler.h"Go to the source code of this file.
Functions | |
| void | OnLoRaWanConnected (void) |
| Called after LoRaWAN successfully connects to the server. | |
| void | OnTimeSynchronized (void) |
| Called after date/time has been synchronized from LoRaWAN. | |
| void | OnLoRaWANRxData (LmHandlerAppData_t *appData, LmHandlerRxParams_t *params) |
| Handle received downlink data from LoRaWAN server. | |
| void | OnLoRaWANTxData (LmHandlerTxParams_t *params) |
| Handle transmission event callback. | |
| void | myloraWan_Init (uint8_t myloraWanAppBit) |
| initialization of myloraWan process, sequencer | |
| void myloraWan_Init | ( | uint8_t | myloraWanAppBit | ) |
initialization of myloraWan process, sequencer
| myloraWanAppBit | the bit for sequencer - this value, +2 |
Definition at line 646 of file mylora_process.c.
References _, myLoraWan_LastDataSend(), myloraWan_MeasureFinish(), and myLoraWan_Reconnect().
Referenced by main().
| void OnLoRaWanConnected | ( | void | ) |
Called after LoRaWAN successfully connects to the server.
This function is called when the LoRaWAN join process completes successfully. It performs time synchronization with the LoRaWAN server by requesting the device time, which updates the RTC with the server's time.
Definition at line 416 of file mylora_process.c.
References _, _systemParams, CFG_SEQ_Prio_0, MAX_NOACKREPEATCOUNT, myLoraWan_ResetDataDefault(), and writeLog().
Referenced by OnJoinRequest().
| void OnLoRaWANRxData | ( | LmHandlerAppData_t * | appData, |
| LmHandlerRxParams_t * | params ) |
Handle received downlink data from LoRaWAN server.
Callback function triggered when data is received from the server.
| appData | Received application data |
| params | Receive parameters (RSSI, SNR, etc.) |
This callback function is triggered when the device receives data from the LoRaWAN server. This can be a response to a confirmed uplink or an application-level downlink message.
| appData | Received application data including buffer and port |
| params | Receive parameters including RSSI, SNR, and downlink counter |
Definition at line 477 of file mylora_process.c.
References _, _systemParams, _systemParamsBck, CFG_SEQ_Prio_0, LORAWANPORT_CONFIG_GET, LORAWANPORT_CONFIG_GET_LAST, LORAWANPORT_CONFIG_SET_PART, mems_RemoveLastData(), systemParams_CheckCRC(), systemParams_SetCRCSystemParams(), systemParams_SetFromPart(), and writeLog().
Referenced by OnRxData().
| void OnLoRaWANTxData | ( | LmHandlerTxParams_t * | params | ) |
Handle transmission event callback.
Callback triggered after transmission attempt completes.
| params | Transmission parameters and status |
This callback is triggered after a transmission attempt, whether successful or not. It provides information about whether an ACK was received for confirmed messages.
| params | Transmission parameters including status and ACK received flag |
Definition at line 597 of file mylora_process.c.
References _, CFG_SEQ_Prio_0, MAX_NOACKREPEATCOUNT, myLoraWan_ResetDataDefault(), myLoraWan_StartReconnect(), and writeLog().
Referenced by OnTxData().
| void OnTimeSynchronized | ( | void | ) |
Called after date/time has been synchronized from LoRaWAN.
This function is called when the device receives a time synchronization response (DeviceTimeAns) from the LoRaWAN server. The RTC has already been updated with the server's time when this function is called.
This function is called when the device receives a time synchronization response (DeviceTimeAns) from the LoRaWAN server. The RTC has already been updated with the server's time when this function is called.
Add your custom code here to perform actions after time synchronization, such as updating time-dependent schedules, logging the sync event, or triggering time-based operations.
Definition at line 452 of file mylora_process.c.
References systemParams_CorrectSystemTime(), and writeLog().
Referenced by OnSysTimeUpdate().