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// The followed methods have been generated by copilot
18/**
19 * @brief Called after LoRaWAN successfully connects to the server
20 *
21 * This function is called when the LoRaWAN join process completes successfully.
22 * It performs time synchronization with the LoRaWAN server by requesting the
23 * device time, which updates the RTC with the server's time.
24 */
25void OnLoRaWanConnected(void);
26
27/**
28 * @brief Called after date/time has been synchronized from LoRaWAN
29 *
30 * This function is called when the device receives a time synchronization
31 * response (DeviceTimeAns) from the LoRaWAN server. The RTC has already
32 * been updated with the server's time when this function is called.
33 */
34void OnTimeSynchronized(void);
35
36/**
37 * @brief Handle received downlink data from LoRaWAN server
38 *
39 * Callback function triggered when data is received from the server.
40 *
41 * @param appData Received application data
42 * @param params Receive parameters (RSSI, SNR, etc.)
43 */
44void OnLoRaWANRxData(LmHandlerAppData_t *appData, LmHandlerRxParams_t *params);
45
46/**
47 * @brief Handle transmission event callback
48 *
49 * Callback triggered after transmission attempt completes.
50 *
51 * @param params Transmission parameters and status
52 */
53void OnLoRaWANTxData(LmHandlerTxParams_t *params);
54
55/**
56 * @brief initialization of myloraWan process, sequencer
57 * @param myloraWanAppBit the bit for sequencer - this value, +2
58 */
59void myloraWan_Init(uint8_t myloraWanAppBit);
60
61#endif /* INC_MYLORA_PROCESS_H_ */
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 OnLoRaWanConnected(void)
Called after LoRaWAN successfully connects to the server.
void OnLoRaWANTxData(LmHandlerTxParams_t *params)
Handle transmission event callback.
void myloraWan_Init(uint8_t myloraWanAppBit)
initialization of myloraWan process, sequencer