NLIdentifyDeviceCriteria

摘要

继承

继承自 :NSObject

属性

TargetDeviceId
NLWeaveIdentifierType
指定应仅响应指定 Weave Node ID 的设备。
TargetFabricId
NLWeaveIdentifierType
指定只有属于指定 Weave 织物的设备才能响应。
TargetModes
NLTargetDeviceModes
指定只有当前处于指定模式的设备应做出响应。
TargetProductId
NSInteger
指定只有具有指定产品代码的设备应做出响应。
TargetVendorId
NSInteger
指定应仅响应给定供应商制造的设备。

公共静态函数

create()

公共函数

toIdentifyDeviceCriteria()

属性

TargetDeviceId

NLWeaveIdentifierType TargetDeviceId

指定应仅响应指定 Weave Node ID 的设备。

值为 -1 表示所有设备都应响应。

注意:TargetDeviceId 字段的值会在 Weave 消息标头的“Destination Node ID”(目标节点 ID)字段中携带 Weave IdentificationRequest,因此不会出现在消息的载荷中。

TargetFabricId

NLWeaveIdentifierType TargetFabricId

指定只有属于指定 Weave 织物的设备才能响应。

值为 0 时,表示只有非结构成员的设备应做出响应。值 -1 表示所有设备都应响应,无论结构成员资格如何。

TargetModes

NLTargetDeviceModes TargetModes

指定只有当前处于指定模式的设备应做出响应。

值取自 TargetDeviceModes 枚举。

TargetProductId

NSInteger TargetProductId

指定只有具有指定产品代码的设备应做出响应。

值 -1 表示任意产品。如果指定了 TargetProductId 字段,还必须指定 TargetVendorId。

TargetVendorId

NSInteger TargetVendorId

指定应仅响应给定供应商制造的设备。

值 -1 表示任意供应商。

公共静态函数

制作游戏

virtual NLIdentifyDeviceCriteria * create()

公共函数

toIdentifyDeviceCriteria

virtual IdentifyDeviceCriteria toIdentifyDeviceCriteria()