L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
mylora_process.h File Reference
#include "stm32wlxx_hal.h"
#include "LmHandlerTypes.h"
#include "LmHandler.h"
Include dependency graph for mylora_process.h:
This graph shows which files directly or indirectly include this file:

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

Function Documentation

◆ myloraWan_Init()

void myloraWan_Init ( uint8_t myloraWanAppBit)

initialization of myloraWan process, sequencer

Parameters
myloraWanAppBitthe 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnLoRaWanConnected()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnLoRaWANRxData()

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.

Parameters
appDataReceived application data
paramsReceive 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.

Parameters
appDataReceived application data including buffer and port
paramsReceive 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnLoRaWANTxData()

void OnLoRaWANTxData ( LmHandlerTxParams_t * params)

Handle transmission event callback.

Callback triggered after transmission attempt completes.

Parameters
paramsTransmission 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.

Parameters
paramsTransmission 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnTimeSynchronized()

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().

Here is the call graph for this function:
Here is the caller graph for this function: