L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
mylora_process.h
Go to the documentation of this file.
1/*
2 * myloraprocess.h
3 *
4 * the LoRaWan processing of data send/receive from server
5 * Created on: 18. 1. 2026
6 * Author: Milan
7 */
8
9#ifndef INC_MYLORA_PROCESS_H_
10#define INC_MYLORA_PROCESS_H_
11
12#include "stm32wlxx_hal.h"
13#include "LmHandlerTypes.h"
14#include "LmHandler.h"
15
16/**
17 * @brief Filled up _currentTime & _currentDate
18 */
19void GetTimeDate(); // 1st initialization
20
21// The followed methods have been generated by copilot
22/**
23 * @brief Called after LoRaWAN successfully connects to the server
24 *
25 * This function is called when the LoRaWAN join process completes successfully.
26 * It performs time synchronization with the LoRaWAN server by requesting the
27 * device time, which updates the RTC with the server's time.
28 */
29void OnLoRaWanConnected(void);
30
31/**
32 * @brief Called after date/time has been synchronized from LoRaWAN
33 *
34 * This function is called when the device receives a time synchronization
35 * response (DeviceTimeAns) from the LoRaWAN server. The RTC has already
36 * been updated with the server's time when this function is called.
37 */
38void OnTimeSynchronized(void);
39
40/**
41 * @brief Handle received downlink data from LoRaWAN server
42 *
43 * Callback function triggered when data is received from the server.
44 *
45 * @param appData Received application data
46 * @param params Receive parameters (RSSI, SNR, etc.)
47 */
48void OnLoRaWANRxData(LmHandlerAppData_t *appData, LmHandlerRxParams_t *params);
49
50/**
51 * @brief Handle transmission event callback
52 *
53 * Callback triggered after transmission attempt completes.
54 *
55 * @param params Transmission parameters and status
56 */
57void OnLoRaWANTxData(LmHandlerTxParams_t *params);
58
59/**
60 * @brief initialization of myloraWan process, sequencer
61 */
62void myloraWan_Init(uint32_t myloraWanAppBit);
63
64#endif /* INC_MYLORA_PROCESS_H_ */
void GetTimeDate()
Filled up _currentTime & _currentDate.
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 myloraWan_Init(uint32_t myloraWanAppBit)
initialization of myloraWan process, sequencer
void OnLoRaWanConnected(void)
Called after LoRaWAN successfully connects to the server.
void OnLoRaWANTxData(LmHandlerTxParams_t *params)
Handle transmission event callback.