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 GetTimeDate ()
 Filled up _currentTime & _currentDate.
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 (uint32_t myloraWanAppBit)
 initialization of myloraWan process, sequencer

Function Documentation

◆ GetTimeDate()

void GetTimeDate ( )

Filled up _currentTime & _currentDate.

Definition at line 291 of file mylora_process.c.

References _localTime.

Referenced by main(), and OnTimeSynchronized().

Here is the caller graph for this function:

◆ myloraWan_Init()

void myloraWan_Init ( uint32_t myloraWanAppBit)

initialization of myloraWan process, sequencer

Definition at line 474 of file mylora_process.c.

References _myloraWanAppBit, 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 304 of file mylora_process.c.

References _connectedCount, _isConnected, _myloraWanAppBit, _systemParams, CFG_SEQ_Prio_0, 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 355 of file mylora_process.c.

References 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 431 of file mylora_process.c.

References _currentSendingDataSz, _fromEndInx, _isConnected, _isDataSending, _myloraWanAppBit, CFG_SEQ_Prio_0, mems_RemoveLastData(), 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 338 of file mylora_process.c.

References _localTime, GetTimeDate(), and writeLog().

Referenced by OnSysTimeUpdate().

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