|
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 | 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 | |
| void GetTimeDate | ( | ) |
Filled up _currentTime & _currentDate.
Definition at line 291 of file mylora_process.c.
References _localTime.
Referenced by main(), and OnTimeSynchronized().
| 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().
| 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().
| 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 355 of file mylora_process.c.
References 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 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().
| 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().