• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef UDP_CONFIG_H
17 #define UDP_CONFIG_H
18 
19 #define UDP_DEMO
20 
21 #ifdef UDP_DEMO
22 #define UDP_DEMO_SUPPORT
23 #define CONFIG_WIFI_STA_MODULE
24 #elif defined(UDP_AP_DEMO)
25 #define UDP_DEMO_SUPPORT
26 #define CONFIG_WIFI_AP_MODULE
27 #endif
28 /**
29   @brief enable HW iot cloud
30  * HW iot cloud send message to Hi3861 board and Hi861 board publish message to HW iot cloud
31  */
32 
33 // /<CONFIG THE LOG
34 /* if you need the iot log for the development ,
35 please enable it, else please comment it
36 */
37 #define CONFIG_LINKLOG_ENABLE   1
38 
39 // /<CONFIG THE WIFI
40 /* Please modify the ssid and pwd for the own */
41 #define AP_SSID  "XXXXXXXXX" // WIFI SSID
42 #define AP_PWD   "XXXXXXXXX" // WIFI PWD
43 
44 // /<Configure the iot platform
45 /* Please modify the device id and pwd for your own */
46 /* 设备ID名称,请参考华为物联网云文档获取该设备的ID。例如:60790e01ba4b2702c053ff03_helloMQTT */
47 #define CONFIG_DEVICE_ID  "xxxxxxx"
48 /* 设备密码,请参考华为物联网云文档设置该设备密码。例如:hispark2021 */
49 #define CONFIG_DEVICE_PWD "xxxxxx"
50 /* <if you use the tls mode and x509mode,
51 please modify the DEVICE CA AND PRIVATE KEY IN iot_main.c
52 */
53 /* Tencent iot Cloud user ID , password */
54 #define CONFIG_USER_ID    "xxxxxxxx"
55 #define CONFIG_USER_PWD   "xxxxxxxx"
56 
57 #endif