Pairing Request

Last Updated on : 2026-01-19 07:02:25download

Usage

thingSmartActivator.getDefaultDeviceListData()

Data display

In the all-in-one app, this data is displayed in the manual pairing entry list on the pairing homepage.

Capabilities

Get level-1/default categories

/**
 * Default manual list data set
 * @returns
 */
function getDefaultDeviceListData():Promise<LevelResultBean>

/**
 * Get the data of level-1 categories
 * @returns
 */
function getDeviceLevelFirstData():Promise<LevelFirstBean[]>

Get level-2 categories

/**
 * Get the list of level-2 categories
 * @param levelCode
 * @param type  
 * @returns
 */
function getDeviceLevelSecondData(levelCode: string, type: number):Promise<LevelSecondBean[]>

Parameters

Key Description
levelCode The category code, obtained from the level-1 category interface: levelFirstList[0].level1Code.
type The category type, obtained from the level-1 category interface: levelFirstList[0].type.

Get level-3 categories

/**
 * The details of level-3 categories
 * @param bizType
 * @param bizValue
 * @returns
 */
function getDeviceLevelThirdDetailData(bizType: number, bizValue: string):Promise<LevelThirdBean>

Parameters

Key Description
bizType The business type. Pass 0 for category, and 1 for pid.
bizValue The business value, obtained from the level-1 category interface: levelSecondList[0].level3Items[0].category or this.levelSecondList[0].level3Items[0].pid.