物联网智能视频服务(消费版)平台为用户提供了基于微信小程序集成插件、设备端集成 SDK 的 TWeCall 接入能力。本文档为您介绍 TWeCall 操作相关内容。
功能概述
设备与小程序双向通话,达到微信音视频通话的原生体验;设备端一键呼叫,微信持续响铃提醒。
操作步骤
控制台查看 TWeCall 的激活码额度
说明:
此处待使用个数指未分配个数。
![](https://qcloudimg.tencent-cloud.cn/image/document/5248df4384d5d676ac5b6f3adb2738fb.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/5248df4384d5d676ac5b6f3adb2738fb.png)
控制台操作小程序授权
小程序需与物联网开发平台的应用进行关联,才可以进行激活码分配。
1. 选择实例后,进入菜单应用开发,单击新建应用,即可创建一个应用与小程序关联。
![](https://qcloudimg.tencent-cloud.cn/image/document/fb63b8ffcf14a258e36bc31f54de9a0e.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/fb63b8ffcf14a258e36bc31f54de9a0e.png)
2. 进入菜单设备量产 > 激活码概览 > 增值激活码 > 分配,选择分配进入激活码分配页面,单击小程序授权。
说明:
如无分配入口,请尽快联系商务购买增值激活码。
![](https://qcloudimg.tencent-cloud.cn/image/document/194dc35ec4807aeca63a319790fc94ef.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/194dc35ec4807aeca63a319790fc94ef.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/066f8a06dae4824bd80fad3bd850964d.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/066f8a06dae4824bd80fad3bd850964d.png)
3. 在小程序授权弹窗内,选择需要授权的应用。单击开始授权,系统将自动生成授权二维码,请小程序的管理员扫码授权即可完成。
![](https://qcloudimg.tencent-cloud.cn/image/document/cb61c9fb626a0ac32349fe245c3bc778.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/cb61c9fb626a0ac32349fe245c3bc778.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/d82af9ffd74df1d2b0c7c17fc6d262ee.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/d82af9ffd74df1d2b0c7c17fc6d262ee.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/27aa84f6a930a0131a0f27177230e411.jpeg)
![](https://qcloudimg.tencent-cloud.cn/image/document/c95d6f3d4eb2b5f81b30503fef69632e.jpg)
![](https://qcloudimg.tencent-cloud.cn/image/document/27aa84f6a930a0131a0f27177230e411.jpeg)
![](https://qcloudimg.tencent-cloud.cn/image/document/c95d6f3d4eb2b5f81b30503fef69632e.jpg)
控制台操作分配激活码
购买了激活码后,需要将激活码分配到对应的应用,方可进行接入服务。
1. 进入菜单设备量产 > 激活码概览 > 增值激活码,选择分配。
![](https://qcloudimg.tencent-cloud.cn/image/document/121176f2fbbb0af77d6384df307bc565.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/121176f2fbbb0af77d6384df307bc565.png)
2. 单击分配后,将跳转至激活码分配页面,单击需要分配的应用的分配激活码,将会弹出分配激活码的弹窗。
![](https://qcloudimg.tencent-cloud.cn/image/document/a1b3dd9a138bf73315fb4e4758aacf13.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/a1b3dd9a138bf73315fb4e4758aacf13.png)
3. 在分配激活码弹窗内,选择需要分配的激活码类型、分配数量,单击确定后,完成分配。
说明:
分配数量最小为50个,如果可分配数量不足,则无法完成分配。
![](https://qcloudimg.tencent-cloud.cn/image/document/550854f1199cc325fadf9de1505eefee.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/550854f1199cc325fadf9de1505eefee.png)
查看分配详情及撤销分配
在分配页面,单击查看详情,将会弹出分配详情弹窗。
![](https://qcloudimg.tencent-cloud.cn/image/document/18bb3a7e4491b066fcad83fa415d9ea1.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/18bb3a7e4491b066fcad83fa415d9ea1.png)
在分配详情弹窗内,可查看激活码分配情况,若操作有误,可单击撤销分配。
说明:
分配后尚未有过消耗的激活码,在7天内可撤销分配。
此处已使用数量指已被设备激活数量。
![](https://qcloudimg.tencent-cloud.cn/image/document/4ba29d4acfdfa7ddaea5665ed3d75f0d.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/4ba29d4acfdfa7ddaea5665ed3d75f0d.png)
查询设备激活详情
设备激活情况,可在激活码分配页面查看,单击查看设备激活详情。
![](https://qcloudimg.tencent-cloud.cn/image/document/5526996fbb67f47928e6bf9c0446537d.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/5526996fbb67f47928e6bf9c0446537d.png)
在查询设备激活详情弹窗内,输入设备的 model ID 和设备名称 SN,即可查询。
![](https://qcloudimg.tencent-cloud.cn/image/document/68e3d0d6edb533fec9c618e961531c6d.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/68e3d0d6edb533fec9c618e961531c6d.png)