10a7ce71fSopenharmony_ci/* 20a7ce71fSopenharmony_ci * Copyright (c) 2020 Huawei Device Co., Ltd. 30a7ce71fSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 40a7ce71fSopenharmony_ci * you may not use this file except in compliance with the License. 50a7ce71fSopenharmony_ci * You may obtain a copy of the License at 60a7ce71fSopenharmony_ci * 70a7ce71fSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 80a7ce71fSopenharmony_ci * 90a7ce71fSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 100a7ce71fSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 110a7ce71fSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 120a7ce71fSopenharmony_ci * See the License for the specific language governing permissions and 130a7ce71fSopenharmony_ci * limitations under the License. 140a7ce71fSopenharmony_ci */ 150a7ce71fSopenharmony_ci 160a7ce71fSopenharmony_ci#ifndef IOT_CONFIG_H 170a7ce71fSopenharmony_ci#define IOT_CONFIG_H 180a7ce71fSopenharmony_ci 190a7ce71fSopenharmony_ci// /<CONFIG THE LOG 200a7ce71fSopenharmony_ci/* if you need the iot log for the development , please enable it, else please comment it */ 210a7ce71fSopenharmony_ci#define CONFIG_LINKLOG_ENABLE 1 220a7ce71fSopenharmony_ci 230a7ce71fSopenharmony_ci// /<CONFIG THE WIFI 240a7ce71fSopenharmony_ci/* Please modify the ssid and pwd for the own */ 250a7ce71fSopenharmony_ci#define CONFIG_AP_SSID "H" // WIFI SSID 260a7ce71fSopenharmony_ci#define CONFIG_AP_PWD "12345678" // WIFI PWD 270a7ce71fSopenharmony_ci 280a7ce71fSopenharmony_ci// /<Configure the iot platform 290a7ce71fSopenharmony_ci/* Please modify the device id and pwd for your own */ 300a7ce71fSopenharmony_ci// 设备ID名称,请参考华为物联网云文档获取该设备的ID。例如:60790e01ba4b2702c053ff03_helloMQTT 310a7ce71fSopenharmony_ci#define CONFIG_DEVICE_ID "5efff688ded33202ca4d6127_HiSpark" 320a7ce71fSopenharmony_ci#define CONFIG_DEVICE_PWD "hispark2021" // 设备密码,请参考华为物联网云文档设置该设备密码。例如:hispark2021 330a7ce71fSopenharmony_ci// /<if you use the tls mode and x509mode, please modify the DEVICE CA AND PRIVATE KEY IN iot_main.c 340a7ce71fSopenharmony_ci// #define CONFIG_MQTT_SSL /< which means use the tls 350a7ce71fSopenharmony_ci// #define CONFIG_MQTT_SSL_X509 which means use the x509 mode, and must enable the SSL; 360a7ce71fSopenharmony_ci// if both disabled, it means use the tcp mode 370a7ce71fSopenharmony_ci/* app_demo_iot entery function */ 380a7ce71fSopenharmony_ci/* Tencent iot Cloud user ID , password */ 390a7ce71fSopenharmony_ci#define CONFIG_USER_ID "xxxxxxxxxxxxxx" 400a7ce71fSopenharmony_ci#define CONFIG_USER_PWD "xxxxxxxxxxxxxx" 410a7ce71fSopenharmony_ci 420a7ce71fSopenharmony_cistatic void AppDemoIot(void); 430a7ce71fSopenharmony_ci#endif