mirror of
https://github.com/HChaZZY/LoRaWAN_Project.git
synced 2025-12-06 10:33:51 +08:00
47 lines
783 B
C
47 lines
783 B
C
#ifndef __APP_H
|
||
#define __APP_H
|
||
#include "stdint.h"
|
||
|
||
|
||
|
||
|
||
/* 软件版本,升级时修改该信息即可 */
|
||
#define CODE_VERSION "V1.0.3"
|
||
/* 软件版本,升级时修改该信息即可 */
|
||
#define PRINT_CODE_VERSION_INFO(format, ...) debug_printf("******** ---Based on LoRaWAN sensor data transmission experiment "format"_%s %s --- ********\r\n", ##__VA_ARGS__, __DATE__, __TIME__)
|
||
|
||
|
||
/** 串口接收内容长度最大值 512字节 */
|
||
#define USART_RECV_LEN_MAX 512
|
||
|
||
/** 入网超时时间:120s */
|
||
#define JOIN_TIME_120_SEC 120
|
||
|
||
|
||
typedef struct {
|
||
char upcnt[10];
|
||
char ackcnt[10];
|
||
char toa[10];
|
||
char nbt[10];
|
||
|
||
char ch[10];
|
||
char sf[10];
|
||
char pwr[10];
|
||
char per[10];
|
||
|
||
char rssi[10];
|
||
char snr[10];
|
||
|
||
} DEBUG;
|
||
|
||
void LoRaWAN_Func_Process(void);
|
||
void LoRaWAN_Board_Info_Print(void);
|
||
|
||
|
||
|
||
|
||
#endif
|
||
|
||
|
||
|