first commit for opensource

first commit for opensource
This commit is contained in:
supowang
2019-09-16 13:19:50 +08:00
parent 08ab013b8e
commit edb2879617
6303 changed files with 5472815 additions and 23 deletions

View File

@@ -0,0 +1,20 @@
### 智能灯小程序DEMO
1. 说明
本示例小程序配合TencentOS_tiny智能灯数据模板示例使用TencentOS_tiny/examples/tencent_cloud_sdk_data_template
[腾讯云侧接入文档参见: 智能灯接入指引](https://cloud.tencent.com/document/product/1081/34744)
2. tencent_cloud_sdk_data_template 接入腾讯云explorer后在 app.js 中修改以下字段即可使用
````
globalData: {
// 腾讯云物联网开发平台explorer中获取 产品ID和设备名称
productId: "XXXX", // 产品ID
deviceName: "XXXX", // 设备名称
// 腾讯云控制台-访问管理-访问密钥-API密钥管理中获取 SecretId, secretKey
secretId: "XXXX",
secretKey: "XXXX",
},
````
3. 测试通过后,如果需要发布小程序,则还需要在小程序管理后台进行服务器域名配置
[微信小程序添加服务器端就接口域名](https://jingyan.baidu.com/article/ce09321bb6e9c12bff858f92.html)
进入微信公众平台小程序后台 - 开发 - 开发设置 - 服务器域名 - 输入域名: iotexplorer.tencentcloudapi.com