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