更新时间:2022-11-24 09:20:11
本文介绍了工程模式业务相关的接口。
函数名称 | 功能描述 |
---|---|
get_engineer_mode | 获取施工模式是否打开 |
set_engineer_mode | 设置施工模式 |
engineer_set_tuya_zigbee_enable | 设置施工模式使能 |
engineer_srv_start | 工程模式启动 |
engrGetLogCallBack | 程模式下设置日志保存路径 |
engrSyncConfigCallBack | 工程模式下同步配置回调 |
engrResetCallBack | 工程模式下重置回调 |
engrFinishCallBack | 工程模式施工完成回调 |
engrGwProcessCallBack | 工程模式下网关状态回调 |
函数原型
external fun get_engineer_mode(): Int
功能说明
获取施工模式是否打开。
返回值
返回值 | 说明 |
---|---|
0 | 关闭 |
1 | 打开 |
函数原型
external fun set_engineer_mode()
功能说明
设置施工模式。
函数原型
external fun engineer_set_tuya_zigbee_enable(): Int
功能说明
设置施工模式使能。
返回值
返回值 | 说明 |
---|---|
0 | 成功 |
非 0 | 失败 |
函数原型
fun engineer_srv_start(pKey: String, engEventListener: EngListener.EngEventListener): Int
功能说明
工程模式启动。
参数说明
参数名称 | 说明 |
---|---|
pKey | product_key |
engEventListener | EngEventListener 回调 |
返回值
返回值 | 说明 |
---|---|
0 | 成功 |
非 0 | 失败 |
函数原型
fun engrGetLogCallBack():String
功能说明
程模式下设置日志保存路径。
返回值
返回值 | 说明 |
---|---|
string | 路径 |
函数原型
fun engrSyncConfigCallBack(): String
功能说明
工程模式下同步配置回调。
返回值
返回值 | 说明 |
---|---|
string | 配置信息 |
函数原型
fun engrResetCallBack(): String
功能说明
工程模式下重置回调。
返回值
返回值 | 说明 |
---|---|
string | 配置信息 |
函数原型
fun engrFinishCallBack()
功能说明
工程模式施工完成回调。
函数原型
fun engrGwProcessCallBack(status: DataEnum.GW_ENGR_PROCESS_T)
功能说明
工程模式下网关状态回调。
参数值
参数值 | 说明 |
---|---|
status | GW_ENGR_PROCESS_T 类型 |
功能说明
网关状态枚举类。
参数值
参数值 | 说明 |
---|---|
ENGR_PROCESS_GW_BIND_START | gateway bind start |
ENGR_PROCESS_GW_BINDING | gateway binding |
ENGR_PROCESS_GW_BIND_SUCCESS | gateway bind success |
ENGR_PROCESS_GW_BIND_FAILED | gateway bind failed |
该内容对您有帮助吗?
是意见反馈该内容对您有帮助吗?
是意见反馈