RUI3 (RAK Unified Interface 3) - RAK4631
service_lora_certification.h
Go to the documentation of this file.
1 #ifndef __SERVICE_LORA_CERFICATION_H__
2 #define __SERVICE_LORA_CERFICATION_H__
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #ifdef SUPPORT_LORA
9 
10 #define LORAWAN_APP_DATA_MAX_SIZE 242
11 
12 #define LORAWAN_ADR_ON 1
13 
14 #define LORAWAN_DEFAULT_DATARATE DR_0
15 
16 #define LORAWAN_APP_PORT 2
17 
18 #define LORAWAN_CONFIRMED_MSG_ON true
19 
20 static uint8_t AppDataBuffer[LORAWAN_APP_DATA_MAX_SIZE];
21 
22 static void CertifiTimerEvent( void* context );
23 
24 uint32_t Certifi_Send(uint8_t port);
25 
26 static bool SendFrame( void );
27 
28 static uint8_t AppPort = LORAWAN_APP_PORT;
29 
30 static uint8_t IsTxConfirmed = LORAWAN_CONFIRMED_MSG_ON;
31 
32 int32_t service_lora_certification(int32_t mode);
33 
34 int32_t service_lora_Certifi_Callback(McpsIndication_t *mcpsIndication);
35 
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif // end SUPPORT_LORA
42 
43 #endif // __SERVICE_LORA_CERFICATION_H__
uint32_t Certifi_Send(uint8_t port)
#define LORAWAN_APP_PORT
Definition: service_lora_certification.h:16
#define LORAWAN_APP_DATA_MAX_SIZE
Definition: service_lora_certification.h:10
#define LORAWAN_CONFIRMED_MSG_ON
Definition: service_lora_certification.h:18
int32_t service_lora_certification(int32_t mode)
int32_t service_lora_Certifi_Callback(McpsIndication_t *mcpsIndication)