更新时间:2023-09-25 06:40:52下载pdf
配网基础数据获取功能,提供对应配网基础数据获取能力,方便您自定义设计 App UI 界面以及查询配网基础参数。
ThingActivatorCoreKit.getCommonBizOpt()
.getDeafultDeviceListData(object : IResultResponse<CategoryResultBean?> {
override fun onError(errorCode: String?, errorMessage: String?) {
TODO("Not yet implemented")
}
override fun onSuccess(result: CategoryResultBean?) {
TODO("Not yet implemented")
}
})
返回示例
{
"result":{
"defaultLevel2List":[
{
"tagCode":"cz_tag",
"name":"Socket",
"level3Items":[
{
"capability":1,
"icon":",
"name":"Socket",
"attribute":5,
"category":"wf_cz",
"activatorDes":"Wi-Fi"
}
]
},
{
"tagCode":"gj_tag",
"name":"Tool",
"level3Items":[
{
"capability":1024,
"icon":"",
"name":"Battery pack",
"attribute":5,
"category":"dcb_2b_4",
"activatorDes":"BLE"
}
]
}
],
"level1List":[
{
"level1Code":"dgzm",
"name":"Electrical",
"type":0
},
{
"level1Code":"zm",
"name":"Lighting",
"type":0
}
],
"defaultWglist":[
{
"capability":4097,
"display":{
"wcAddBtText":"Confirm the two green lights are on.",
"wcTip":"Please plug in the gateway and connect it to the router, making sure your phone and the gateway are under the same network. Then, comfirm that the light is on.",
"wifiIconUrl":"",
"wcHelpUrl":"",
"wifiTitle":"Select 2.4 GHz Wi-Fi Network and enter password.",
"wifiContent":"If your Wi-Fi is 5GHz, please set it to be 2.4GHz.",
"wcTipIconUrl":""
},
"icon":"",
"name":"Gateway",
"linkModes":[
{
"leadList":[
{
"iconUrl":"",
"title":"Please plug in the gateway and connect it to the router."
},
{
"iconUrl":"",
"title":"Hold the RESET button for 5s."
},
{
"iconUrl":"",
"title":"Confirm the two green lights are on."
}
],
"linkMode":8,
"title":"Cable"
}
],
"enableLead":false,
"attribute":0,
"category":"wf_zig_zigbee"
}
]
},
"t":1622190464866,
"success":true,
"status":"ok"
}
ThingActivatorCoreKit.getCommonBizOpt()
.getDeviceLevelSecondData("level",0,object :IResultResponse<List<CategoryLevelTwoBean>?>{
override fun onError(errorCode: String?, errorMessage: String?) {
TODO("Not yet implemented")
}
override fun onSuccess(result: List<CategoryLevelTwoBean>?) {
TODO("Not yet implemented")
}
})
请求参数
名称 | 参数类型 | 说明 |
---|---|---|
levelCode | String | 一级类目的 levelCode |
type | Int | 一级类目的 type |
返回示例
{
"result":[
{
"tagCode":"zm_dj_tag",
"name":"",
"level3Items":[
{
"capability":1025,
"icon":"",
"name":"",
"attribute":4,
"category":"wf_ble_dj",
"activatorDes":""
}
]
},
{
"tagCode":"zm_dd_tag",
"name":"",
"level3Items":[
{
"capability":1025,
"sale":"",
"icon":"",
"name":"",
"sort":0,
"attribute":4,
"category":"wf_ble_dd",
"activatorDes":""
}
]
}
],
"t":1622688701083,
"success":true,
"status":"ok"
}
ThingActivatorCoreKit.getCommonBizOpt()
.getDeviceLevelThirdDetailData(0,"bizValue",object :IResultResponse<CategoryLevelThirdBean?>{
override fun onError(errorCode: String?, errorMessage: String?) {
TODO("Not yet implemented")
}
override fun onSuccess(result: CategoryLevelThirdBean?) {
TODO("Not yet implemented")
}
})
请求参数
名称 | 参数类型 | 说明 |
---|---|---|
bizType | Int |
|
bizValue | String |
|
{
"result":{
"display":{
"ezAddBtText":"",
"wifiIconUrl":"",
"ezHelpUrl":"",
"ezTipIconUrl":"",
"apTip":"",
"wifiTitle":"",
"apTipIconUrl":"",
"apAddBtText":"",
"wifiContent":"",
"ezTip":"",
"apHelpUrl":""
},
"linkModes":[
{
"leadList":[
{
"iconUrl":"",
"title":""
},
{
"iconUrl":"",
"title":""
},
{
"iconUrl":"",
"title":""
}
],
"linkMode":1,
"desText":"",
"title":""
},
{
"leadList":[
{
"iconUrl":"",
"title":""
},
{
"iconUrl":"",
"title":""
},
{
"iconUrl":"",
"title":""
},
{
"iconUrl":"",
"title":""
}
],
"linkMode":2,
"title":""
}
],
"enableLead":false
},
"t":1622689764143,
"success":true,
"status":"ok"
}
该内容对您有帮助吗?
是意见反馈该内容对您有帮助吗?
是意见反馈