Tuya iOS Smart Life App SDK 5.15.0
<ThingBLEDeviceInfoProtocol> Protocol Reference

#import <ThingBLEDeviceInfoProtocol.h>

Inheritance diagram for <ThingBLEDeviceInfoProtocol>:

Instance Methods

(void) - handlePeripheral:
 
(void) - updateActiveEvent
 更新设备活跃时间 More...
 
(void) - configSchemaDict:
 
(void) - configFittingSchemaDict:
 
(void) - handlePeripheral:
 
(void) - updateActiveEvent
 更新设备活跃时间 More...
 
(void) - configSchemaDict:
 
(void) - configFittingSchemaDict:
 

Properties

ThingBLEAgentagent
 
ThingSmartBLEDeviceState state
 
NSString * uuid
 
NSString * mac
 
NSString * devId
 
NSString * pid
 
NSString * pairUuid
 
ThingBLEPeripheralperipheral
 
ThingBLEAdvModeladvModel
 
ThingBLEAdvIDType IDType
 
int32_t sn
 
int32_t ack
 
NSDictionary * schemaDict
 
ThingBLECharacteristicnotifyCharacteristic
 
ThingBLECharacteristicwriteCharacteristic
 
ThingBLECharacteristicotaCharacteristic
 
BOOL bondState
 NO = 未绑定 YES = 已绑定 More...
 
BOOL isSIGMesh
 
NSTimeInterval activeTime
 
ThingBLEEncryptType encryptType
 
ThingSmartBLEBusinessType businessType
 
NSMutableDictionary * bizExt
 
BOOL certCheck
 是否需要云端双向验证证书(大于 4.0 的协议) More...
 
BOOL advanceEncrypt
 是否支持高级加密(即双向认证)(大于 4.0 的协议) More...
 
BOOL isSupportBeaconkey
 是否需要获取 beaconKey More...
 
BOOL isBLEChannelFirst
 蓝牙通道是否是最高优先级 More...
 
BOOL isSupportPlugPlay
 设备是否支持 Plug&Play More...
 
NSString * bleMac
 ble 的 mac More...
 
NSString * zigbeeMac
 zigbee 子设备的 mac More...
 
NSInteger networkStatus
 
int bleProtocolV
 
NSUInteger maxMtuLen
 
NSString * pv
 
NSString * dv
 硬件版本号1:取硬件版本号2的高2位,例如v1.1 More...
 
NSString * dv2
 硬件版本号2:例如0x010000代表v1.1.0 More...
 
NSString * sv
 固件版本号1:取固件版本号2的高2位,例如V1.2 More...
 
NSString * sv2
 固件版本号2:例如0x010200代表v1.2.0 More...
 
BOOL use_sv2
 固件版本是否用 sv2? true = sv2 false = sv More...
 
BOOL use_dv2
 硬件版本是否用 dv2? true = dv2 false = dv More...
 
NSString * mcuDv
 mcu 硬件版本号 More...
 
NSString * mcuSv
 mcu 固件版本号 More...
 
NSString * authKey
 mcu 固件版本号 More...
 
NSMutableArray * channel_modules
 
NSString * bleCapability
 
NSUInteger packetMaxSize
 蓝牙能力 More...
 
BOOL isLinkEncrypt
 应用层分包的最大长度 More...
 
BOOL isForceLinkDevice
 当前蓝牙连接是否已经 LINK 层加密 More...
 
BOOL isSecurityLevelDevice
 是否需要强制 LINK 层加密 More...
 
NSNumber * slValue
 是否需要安全级别配置 More...
 
BOOL isSupportFitting
 安全级别 More...
 
NSDictionary * fittingSchemaDict
 是否支持蓝牙配件 More...
 
BOOL isSupportQueryWifiList
 
BOOL isSupportReportConfigState
 是否支持查询wifi列表 More...
 
BOOL isSupportUploadDeviceLog
 是否支持主动上报配网阶段状态码 More...
 
BOOL isRoaming
 是否支持日志采集传输 ////// Whether the device is support roam More...
 
BOOL isExecutedV2Secret
 
BOOL isSupportV2Secret
 
BOOL isSupportMasterSlaveDevice
 
BOOL isCloudSynch
 
BOOL isFromeSysBle
 
BOOL bootOTASupport
 
BOOL bootOTABeing
 
id< ThingBLEActiveProtocolactiveManager
 
id< ThingBLEActiveProtocol, ThingLocalBLEActiveProtocollocalActiveMgr
 
id< ThingBLEConfigProtocolconfigManager
 

Detailed Description

Definition at line 43 of file ThingBLEDeviceInfoProtocol.h.

Method Documentation

◆ configFittingSchemaDict: [1/2]

- (void) configFittingSchemaDict: (NSString *)  json

◆ configFittingSchemaDict: [2/2]

- (void) configFittingSchemaDict: (NSString *)  json

◆ configSchemaDict: [1/2]

- (void) configSchemaDict: (NSString *)  json

◆ configSchemaDict: [2/2]

- (void) configSchemaDict: (NSString *)  json

◆ handlePeripheral: [1/2]

- (void) handlePeripheral: (ThingBLEPeripheral *)  peripheral

◆ handlePeripheral: [2/2]

- (void) handlePeripheral: (ThingBLEPeripheral *)  peripheral

◆ updateActiveEvent [1/2]

- (void) updateActiveEvent

更新设备活跃时间

◆ updateActiveEvent [2/2]

- (void) updateActiveEvent

更新设备活跃时间

Property Documentation

◆ ack

- (int32_t) ack
readwritenonatomicassign

Definition at line 60 of file ThingBLEDeviceInfoProtocol.h.

◆ activeManager

- (id< ThingBLEActiveProtocol >) activeManager
readwritenonatomicstrong

Definition at line 153 of file ThingBLEDeviceInfoProtocol.h.

◆ activeTime

- (NSTimeInterval) activeTime
readwritenonatomicassign

Definition at line 71 of file ThingBLEDeviceInfoProtocol.h.

◆ advanceEncrypt

- (BOOL) advanceEncrypt
readwritenonatomicassign

是否支持高级加密(即双向认证)(大于 4.0 的协议)

Definition at line 82 of file ThingBLEDeviceInfoProtocol.h.

◆ advModel

- (ThingBLEAdvModel *) advModel
readwritenonatomicstrong

Definition at line 56 of file ThingBLEDeviceInfoProtocol.h.

◆ agent

- (ThingBLEAgent *) agent
readwritenonatomicstrong

Definition at line 45 of file ThingBLEDeviceInfoProtocol.h.

◆ authKey

- (NSString *) authKey
readwritenonatomicstrong

mcu 固件版本号

Definition at line 107 of file ThingBLEDeviceInfoProtocol.h.

◆ bizExt

- (NSMutableDictionary *) bizExt
readwritenonatomicstrong

Definition at line 79 of file ThingBLEDeviceInfoProtocol.h.

◆ bleCapability

- (NSString *) bleCapability
readwritenonatomicstrong

Definition at line 110 of file ThingBLEDeviceInfoProtocol.h.

◆ bleMac

- (NSString *) bleMac
readwritenonatomicstrong

ble 的 mac

Definition at line 88 of file ThingBLEDeviceInfoProtocol.h.

◆ bleProtocolV

- (int) bleProtocolV
readwritenonatomicassign

Definition at line 93 of file ThingBLEDeviceInfoProtocol.h.

◆ bondState

- (BOOL) bondState
readwritenonatomicassign

NO = 未绑定 YES = 已绑定

Definition at line 68 of file ThingBLEDeviceInfoProtocol.h.

◆ bootOTABeing

- (BOOL) bootOTABeing
readwritenonatomicassign

Definition at line 139 of file ThingBLEDeviceInfoProtocol.h.

◆ bootOTASupport

- (BOOL) bootOTASupport
readwritenonatomicassign

Definition at line 137 of file ThingBLEDeviceInfoProtocol.h.

◆ businessType

- (ThingSmartBLEBusinessType) businessType
readwritenonatomicassign

Definition at line 77 of file ThingBLEDeviceInfoProtocol.h.

◆ certCheck

- (BOOL) certCheck
readwritenonatomicassign

是否需要云端双向验证证书(大于 4.0 的协议)

Definition at line 81 of file ThingBLEDeviceInfoProtocol.h.

◆ channel_modules

- (NSMutableArray *) channel_modules
readwritenonatomicstrong

Definition at line 109 of file ThingBLEDeviceInfoProtocol.h.

◆ configManager

- (id< ThingBLEConfigProtocol >) configManager
readwritenonatomicstrong

Definition at line 157 of file ThingBLEDeviceInfoProtocol.h.

◆ devId

- (NSString *) devId
readwritenonatomicstrong

Definition at line 51 of file ThingBLEDeviceInfoProtocol.h.

◆ dv

- (NSString *) dv
readwritenonatomicstrong

硬件版本号1:取硬件版本号2的高2位,例如v1.1

Definition at line 99 of file ThingBLEDeviceInfoProtocol.h.

◆ dv2

- (NSString *) dv2
readwritenonatomicstrong

硬件版本号2:例如0x010000代表v1.1.0

Definition at line 100 of file ThingBLEDeviceInfoProtocol.h.

◆ encryptType

- (ThingBLEEncryptType) encryptType
readwritenonatomicassign

Definition at line 75 of file ThingBLEDeviceInfoProtocol.h.

◆ fittingSchemaDict

- (NSDictionary*) fittingSchemaDict
readwritenonatomicstrong

是否支持蓝牙配件

Definition at line 117 of file ThingBLEDeviceInfoProtocol.h.

◆ IDType

- (ThingBLEAdvIDType) IDType
readwritenonatomicassign

Definition at line 57 of file ThingBLEDeviceInfoProtocol.h.

◆ isBLEChannelFirst

- (BOOL) isBLEChannelFirst
readwritenonatomicassign

蓝牙通道是否是最高优先级

Definition at line 86 of file ThingBLEDeviceInfoProtocol.h.

◆ isCloudSynch

- (BOOL) isCloudSynch
readwritenonatomicassign

Definition at line 131 of file ThingBLEDeviceInfoProtocol.h.

◆ isExecutedV2Secret

- (BOOL) isExecutedV2Secret
readwritenonatomicassign

Definition at line 126 of file ThingBLEDeviceInfoProtocol.h.

◆ isForceLinkDevice

- (BOOL) isForceLinkDevice
readwritenonatomicassign

当前蓝牙连接是否已经 LINK 层加密

Definition at line 113 of file ThingBLEDeviceInfoProtocol.h.

◆ isFromeSysBle

- (BOOL) isFromeSysBle
readwritenonatomicassign

Definition at line 134 of file ThingBLEDeviceInfoProtocol.h.

◆ isLinkEncrypt

- (BOOL) isLinkEncrypt
readwritenonatomicassign

应用层分包的最大长度

Definition at line 112 of file ThingBLEDeviceInfoProtocol.h.

◆ isRoaming

- (BOOL) isRoaming
readwritenonatomicassign

是否支持日志采集传输 ////// Whether the device is support roam

Definition at line 124 of file ThingBLEDeviceInfoProtocol.h.

◆ isSecurityLevelDevice

- (BOOL) isSecurityLevelDevice
readwritenonatomicassign

是否需要强制 LINK 层加密

Definition at line 114 of file ThingBLEDeviceInfoProtocol.h.

◆ isSIGMesh

- (BOOL) isSIGMesh
readwritenonatomicassign

Definition at line 69 of file ThingBLEDeviceInfoProtocol.h.

◆ isSupportBeaconkey

- (BOOL) isSupportBeaconkey
readwritenonatomicassign

是否需要获取 beaconKey

Definition at line 83 of file ThingBLEDeviceInfoProtocol.h.

◆ isSupportFitting

- (BOOL) isSupportFitting
readwritenonatomicassign

安全级别

Definition at line 116 of file ThingBLEDeviceInfoProtocol.h.

◆ isSupportMasterSlaveDevice

- (BOOL) isSupportMasterSlaveDevice
readwritenonatomicassign

Definition at line 129 of file ThingBLEDeviceInfoProtocol.h.

◆ isSupportPlugPlay

- (BOOL) isSupportPlugPlay
readwritenonatomicassign

设备是否支持 Plug&Play

Definition at line 87 of file ThingBLEDeviceInfoProtocol.h.

◆ isSupportQueryWifiList

- (BOOL) isSupportQueryWifiList
readwritenonatomicassign

Definition at line 119 of file ThingBLEDeviceInfoProtocol.h.

◆ isSupportReportConfigState

- (BOOL) isSupportReportConfigState
readwritenonatomicassign

是否支持查询wifi列表

Definition at line 120 of file ThingBLEDeviceInfoProtocol.h.

◆ isSupportUploadDeviceLog

- (BOOL) isSupportUploadDeviceLog
readwritenonatomicassign

是否支持主动上报配网阶段状态码

Definition at line 122 of file ThingBLEDeviceInfoProtocol.h.

◆ isSupportV2Secret

- (BOOL) isSupportV2Secret
readwritenonatomicassign

Definition at line 127 of file ThingBLEDeviceInfoProtocol.h.

◆ localActiveMgr

- (id< ThingBLEActiveProtocol, ThingLocalBLEActiveProtocol >) localActiveMgr
readwritenonatomicstrong

Definition at line 155 of file ThingBLEDeviceInfoProtocol.h.

◆ mac

- (NSString *) mac
readwritenonatomicstrong

Definition at line 50 of file ThingBLEDeviceInfoProtocol.h.

◆ maxMtuLen

- (NSUInteger) maxMtuLen
readwritenonatomicassign

Definition at line 95 of file ThingBLEDeviceInfoProtocol.h.

◆ mcuDv

- (NSString *) mcuDv
readwritenonatomicstrong

mcu 硬件版本号

Definition at line 105 of file ThingBLEDeviceInfoProtocol.h.

◆ mcuSv

- (NSString *) mcuSv
readwritenonatomicstrong

mcu 固件版本号

Definition at line 106 of file ThingBLEDeviceInfoProtocol.h.

◆ networkStatus

- (NSInteger) networkStatus
readwritenonatomicassign

Definition at line 90 of file ThingBLEDeviceInfoProtocol.h.

◆ notifyCharacteristic

- (ThingBLECharacteristic *) notifyCharacteristic
readwritenonatomicstrong

Definition at line 64 of file ThingBLEDeviceInfoProtocol.h.

◆ otaCharacteristic

- (ThingBLECharacteristic *) otaCharacteristic
readwritenonatomicstrong

Definition at line 66 of file ThingBLEDeviceInfoProtocol.h.

◆ packetMaxSize

- (NSUInteger) packetMaxSize
readwritenonatomicassign

蓝牙能力

Definition at line 111 of file ThingBLEDeviceInfoProtocol.h.

◆ pairUuid

- (NSString *) pairUuid
readwritenonatomicstrong

Definition at line 53 of file ThingBLEDeviceInfoProtocol.h.

◆ peripheral

- (ThingBLEPeripheral *) peripheral
readwriteatomicstrong

Definition at line 55 of file ThingBLEDeviceInfoProtocol.h.

◆ pid

- (NSString *) pid
readwritenonatomicstrong

Definition at line 52 of file ThingBLEDeviceInfoProtocol.h.

◆ pv

- (NSString *) pv
readwritenonatomicstrong

Definition at line 97 of file ThingBLEDeviceInfoProtocol.h.

◆ schemaDict

- (NSDictionary *) schemaDict
readwritenonatomicstrong

Definition at line 62 of file ThingBLEDeviceInfoProtocol.h.

◆ slValue

- (NSNumber*) slValue
readwritenonatomicstrong

是否需要安全级别配置

Definition at line 115 of file ThingBLEDeviceInfoProtocol.h.

◆ sn

- (int32_t) sn
readwritenonatomicassign

Definition at line 59 of file ThingBLEDeviceInfoProtocol.h.

◆ state

- (ThingSmartBLEDeviceState) state
readwritenonatomicassign

Definition at line 47 of file ThingBLEDeviceInfoProtocol.h.

◆ sv

- (NSString *) sv
readwritenonatomicstrong

固件版本号1:取固件版本号2的高2位,例如V1.2

Definition at line 101 of file ThingBLEDeviceInfoProtocol.h.

◆ sv2

- (NSString *) sv2
readwritenonatomicstrong

固件版本号2:例如0x010200代表v1.2.0

Definition at line 102 of file ThingBLEDeviceInfoProtocol.h.

◆ use_dv2

- (BOOL) use_dv2
readwritenonatomicassign

硬件版本是否用 dv2? true = dv2 false = dv

Definition at line 104 of file ThingBLEDeviceInfoProtocol.h.

◆ use_sv2

- (BOOL) use_sv2
readwritenonatomicassign

固件版本是否用 sv2? true = sv2 false = sv

Definition at line 103 of file ThingBLEDeviceInfoProtocol.h.

◆ uuid

- (NSString *) uuid
readwritenonatomicstrong

Definition at line 49 of file ThingBLEDeviceInfoProtocol.h.

◆ writeCharacteristic

- (ThingBLECharacteristic *) writeCharacteristic
readwritenonatomicstrong

Definition at line 65 of file ThingBLEDeviceInfoProtocol.h.

◆ zigbeeMac

- (NSString *) zigbeeMac
readwritenonatomicstrong

zigbee 子设备的 mac

Definition at line 89 of file ThingBLEDeviceInfoProtocol.h.


The documentation for this protocol was generated from the following files: