更新时间:2022-11-24 09:20:14下载pdf
本文介绍了 Zigbee 业务相关的接口。
函数名称 | 功能描述 |
---|---|
iot_reg_gw_mgr_cb | 设置设备 Zigbee 状态回调 |
zigbee_svc_init | Zigbee 业务初始化 |
zigbee_svc_start | Zigbee 业务启动 |
ziggbe_send_data | Zigbee 发送数据 |
ziggbe_del_dev | Zigbee 下删除子设备 |
zigbee_set_tx_radio_power | 设置 Zigbee 的 tx_radio 值 |
zigbee_get_ncp_ver | 获取 Zigbee 版本号 |
devDelCallBack | 子设备删除回调 |
devBindCallBack | 子设备绑定回调 |
devHbCallBack | 删除 Hb 回调 |
devUpgardeCallBack | 子设备升级回调 |
devResetCallBack | 子设备重置回调 |
z3Join | 设备加入 Zigbee 网络回调 |
z3_leave | 设备本地离开 Zigbee 网络回调 |
z3_report | 设备 ZCL 数据上报回调 |
z3_notify | Zigbee 模组启动完成通知回调 |
z3_upgrade_end | 设备升级完成通知回调 |
函数原型
fun iot_reg_gw_mgr_cb(dep_tp: Int, devMgrLsitener: ZigbeeListener.DevMgrListener): Int
功能说明
设置设备 Zigbee 状态回调。
参数说明
参数名称 | 说明 |
---|---|
dep_tp | dp Tp |
devMgrLsitener | Zigbee 回调 |
返回值
返回值 | 说明 |
---|---|
0 | 成功 |
非 0 | 失败 |
函数原型
fun zigbee_svc_init(zigbeeModel: ZigbeeModel): Int
功能说明
Zigbee 业务初始化。
参数说明
参数名称 | 说明 |
---|---|
zigbeeModel | Zigbee 信息模型 |
返回值
返回值 | 说明 |
---|---|
0 | 成功 |
非 0 | 失败 |
函数原型
fun zigbee_svc_start(zigbeeModel: ZigbeeModel): Int
功能说明
Zigbee 业务启动。
参数说明
参数名称 | 说明 |
---|---|
zigbeeModel | Zigbee 信息模型 |
返回值
返回值 | 说明 |
---|---|
0 | 成功 |
非 0 | 失败 |
函数原型
fun ziggbe_send_data(zigbeeZ3ApsFrameMode: ZigbeeZ3ApsFrameMode): Int
功能说明
Zigbee 发送数据。
参数说明
参数名称 | 说明 |
---|---|
zigbeeZ3ApsFrameMode | apsFrameMod 信息模型 |
返回值
返回值 | 说明 |
---|---|
0 | 成功 |
非 0 | 失败 |
函数原型
external fun ziggbe_del_dev(dip: String): Int
功能说明
Zigbee 下删除子设备。
参数说明
参数名称 | 说明 |
---|---|
dip | 子设备 ID |
返回值
返回值 | 说明 |
---|---|
0 | 成功 |
非 0 | 失败 |
函数原型
external fun zigbee_set_tx_radio_power(tx_power: Int): Int
功能说明
设置 Zigbee 的 tx_radio 值。
参数说明
参数名称 | 说明 |
---|---|
tx_power | 取值范围:-70~20 |
返回值
返回值 | 说明 |
---|---|
0 | 成功 |
非 0 | 失败 |
函数原型
external fun zigbee_get_ncp_ver():String
功能说明
获取 Zigbee 版本号。
返回值
返回值 | 说明 |
---|---|
string | 版本号 |
函数原型
fun devDelCallBack(devId: String, type: Int)
功能说明
子设备删除回调。
参数说明
参数名称 | 说明 |
---|---|
devId | 设备 ID |
type | 设备类型 |
函数原型
fun devBindCallBack(devId: String, opRet: Int)
功能说明
子设备绑定回调
参数说明
参数名称 | 说明 |
---|---|
devId | 设备 ID |
opRet | 操作类型 |
函数原型
fun devHbCallBack(devId: String)
功能说明
删除 Hb 回调。
参数说明
参数名称 | 说明 |
---|---|
devId | 设备 ID |
函数原型
fun devUpgardeCallBack(devId: String, fw: FwModel)
功能说明
子设备升级回调。
参数说明
参数名称 | 说明 |
---|---|
devId | 设备 ID |
fw | FwMdeol |
函数原型
fun devResetCallBack(devId: String, type: Int)
功能说明
子设备重置回调。
参数说明
参数名称 | 说明 |
---|---|
devId | 设备 ID |
type | 设备类型 |
函数原型
fun z3Join(zigbeeZ3DESCMode: ZigbeeZ3DESCMode)
功能说明
设备加入 Zigbee 网络回调。
参数说明
参数名称 | 说明 |
---|---|
zigbeeZ3DESCMode | ZigbeeZ3DESCMode 类型 |
函数原型
fun z3_leave(dip: String)
功能说明
设备本地离开 Zigbee 网络回调。
参数说明
参数名称 | 说明 |
---|---|
dip | 设备 ID |
函数原型
fun z3_report(zigbeeZ3ApsFrameMode: ZigbeeZ3ApsFrameMode)
功能说明
设备 ZCL 数据上报回调。
参数说明
参数名称 | 说明 |
---|---|
zigbeeZ3ApsFrameMode | ZigbeeZ3ApsFrameMode |
函数原型
fun z3_notify()
功能说明
Zigbee 模组启动完成通知回调。
函数原型
fun z3_upgrade_end(dip: String, rc: Int, version: Int)
功能说明
设备升级完成通知回调。
参数说明
参数名称 | 说明 |
---|---|
dip | dip |
rc | rc |
version | 版本号 |
该内容对您有帮助吗?
是意见反馈该内容对您有帮助吗?
是意见反馈