• 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 IOT_CONFIG_H
17 #define IOT_CONFIG_H
18 
19 
20 #define DEVICE_PWD_DEFAULT  ((char*)"12345678")
21 // /<CONFIG THE LOG
22 /* if you need the iot log for the development , please enable it, else please comment it */
23 #define CONFIG_LINKLOG_ENABLE 1
24 
25 // /<CONFIG THE WIFI
26 /* Please modify the ssid and pwd for the own */
27 #define CONFIG_AP_SSID  "H" // WIFI SSID
28 #define CONFIG_AP_PWD "12345678" // WIFI PWD
29 #define PARAM_SERVER_ADDR "xxxxxxxx"
30 
31 // /<Configure the iot platform
32 /* Please modify the device id and pwd for your own */
33 // 设备ID名称,请参考华为物联网云文档获取该设备的ID。例如:60790e01ba4b2702c053ff03_helloMQTT
34 #define CONFIG_DEVICE_ID  "60790e01ba4b2702c053ff03_helloMQTT"
35 #define CONFIG_DEVICE_PWD "hispark2021" // 设备密码,请参考华为物联网云文档设置该设备密码。例如:hispark2021
36 // /<if you use the tls mode and x509mode, please modify the DEVICE CA AND PRIVATE KEY IN iot_main.c
37 // #define CONFIG_MQTT_SSL /< which means use the tls
38 // #define CONFIG_MQTT_SSL_X509 which means use the x509 mode, and must enable the SSL;
39 // if both disabled, it means use the tcp mode
40 /* app_demo_iot entery function */
41 
42 static void AppDemoIot(void);
43 #endif