-
Notifications
You must be signed in to change notification settings - Fork 103
/
Copy pathiot_config.h
85 lines (69 loc) · 2.07 KB
/
iot_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// Enable Driver
// #define CONFIG_DRIVER_ENABLE 1
// Enable AT
// #define CONFIG_AT_ENABLE 1
// #define CONFIG_AT_DEVNAME "atdev"
// #define CONFIG_AT_OOBTABLEN 6
// #define CONFIG_AT_RECVMAXLEN 1024
// #define CONFIG_AT_TASKPRIOR 10
// Enable OS
#define CONFIG_LITEOS_ENABLE 1
// #define CONFIG_FREERTOS_ENABLE 1
// #define CONFIG_OPENHARMONYOS_ENABLE 1
#define CONFIG_LINKLOG_ENABLE 1
#define CONFIG_LINKQUEUE_ENABLE 1
// Enable Shell
// #define CONFIG_SHELL_ENABLE 1
// #define CONFIG_SHELL_TASK_STACKSIZE 2048
// #define CONFIG_SHELL_TASK_PRIOR 10
// Enable Demo
// #define CONFIG_LINKDEMO_ENABLE 1
// #define CONFIG_USER_DEMO "oc_mqtt_demo"
// Enable NB-IoT
// #define CONFIG_BOUDICA150_ENABLE 1
// Enable LWM2M
/*
#define CONFIG_OCLWM2M_ENABLE 1
#define CONFIG_OCLWM2MTINY_ENABLE 1
#define CONFIG_LWM2M_AL_ENABLE 1
#define CONFIG_WAKAAMALWM2M_ENABLE 1
*/
// Enable CoAP
/*
#define CONFIG_OCCOAP_ENABLE 1
#define CONFIG_COAP_AL_ENABLE 1
#define CONFIG_LITECOAP_ENABLE 1
#define CONFIG_OCCOAPTINY_ENABLE 1
*/
// Enable TCPIP
#define CONFIG_TCPIP_AL_ENABLE 1
// Enbale ESP8266 根据自己的网络环境配置
#define CONFIG_ESP8266_ENABLE 1
#define CONFIG_ESP8266_SSID "AngelStar"
#define CONFIG_ESP8266_PWD "xingli27"
// Enable MQTT
#define CONFIG_CJSON_ENABLE 1
#define CONFIG_MQTT_AL_ENABLE 1
#define CONFIG_PAHO_MQTT 1
#define CONFIG_OCMQTT_ENABLE 1
#define CONFIG_OCMQTT_ATCMD 1
#define CONFIG_OC_MQTT_V5 1
#define CONFIG_OC_TINYMQTTV5_ENABLE 1
#define CONFIG_OC_MQTTV5_PROFILE 1
// MQTT Configuration
#define CONFIG_PAHO_CONNECT_TIMEOUT 10000
#define CONFIG_PAHO_CMD_TIMEOUT 10000
#define CONFIG_PAHO_LOOPTIMEOUT 10
#define CONFIG_PAHO_SNDBUF_SIZE 2048
#define CONFIG_PAHO_RCVBUF_SIZE 2048
#define CONFIG_QUEUE_TIMEOUT 5000
/* DTLS */
#define CONFIG_DTLS_AL_ENABLE 1
#define CONFIG_MBEDTLS_ENABLE 1
#define CONFIG_MBEDTLS_PSK 1
// Enable iot_config.h
#define CONFIG_IOT_LINK_CONFIGFILE "iot_config.h"
// Enable message storage in abnormal scene demo
// #define CONFIG_MSG_STORAGE_ABNORMAL_SCENE_DEMO 1
// Enable reconnection avoidance algorithm demo
// #define CONFIG_BACKOFF_RECNONNECT 1