#import <ThingBLEConfigProtocol.h>
Definition at line 30 of file ThingBLEConfigProtocol.h.
◆ connectWithDeviceInfo:localKey:secKey:sign:success:failure: [1/2]
连接设备
- Parameters
-
| deviceInfo | deviceInfo |
| localKey | localKey |
| success | success |
| failure | failure |
| secKey | secret Key |
◆ connectWithDeviceInfo:localKey:secKey:sign:success:failure: [2/2]
连接设备
- Parameters
-
| deviceInfo | deviceInfo |
| localKey | localKey |
| success | success |
| failure | failure |
| secKey | secret Key |
◆ connectWithDeviceInfo:localKey:success:failure: [1/2]
◆ connectWithDeviceInfo:localKey:success:failure: [2/2]
◆ disconnectWithDeviceInfo:success:failure: [1/2]
断开连接
- Parameters
-
| deviceInfo | deviceInfo |
| success | success |
| failure | failure |
◆ disconnectWithDeviceInfo:success:failure: [2/2]
断开连接
- Parameters
-
| deviceInfo | deviceInfo |
| success | success |
| failure | failure |
◆ discoverServiceWithDeviceInfo:localKey:success:failure: [1/2]
重新发现服务
- Parameters
-
| deviceInfo | deviceInfo |
| localKey | localKey |
| success | success |
| failure | failure |
◆ discoverServiceWithDeviceInfo:localKey:success:failure: [2/2]
重新发现服务
- Parameters
-
| deviceInfo | deviceInfo |
| localKey | localKey |
| success | success |
| failure | failure |
◆ dpsWithDeviceInfo:dpsData:isFittingDevice: [1/2]
| - (nullable NSDictionary *) dpsWithDeviceInfo: |
|
(id< ThingBLEDeviceInfoProtocol >_Nullable) |
deviceInfo |
| dpsData: |
|
(nullable NSData *) |
dpsData |
| isFittingDevice: |
|
(BOOL) |
isFittingDevice |
|
|
| |
◆ dpsWithDeviceInfo:dpsData:isFittingDevice: [2/2]
| - (nullable NSDictionary *) dpsWithDeviceInfo: |
|
(id< ThingBLEDeviceInfoProtocol >_Nullable) |
deviceInfo |
| dpsData: |
|
(nullable NSData *) |
dpsData |
| isFittingDevice: |
|
(BOOL) |
isFittingDevice |
|
|
| |
◆ forceDeleteWithDeviceInfo:success:failure: [1/2]
强制移除设备
- Parameters
-
| deviceInfo | deviceInfo |
| success | success |
| failure | failure |
◆ forceDeleteWithDeviceInfo:success:failure: [2/2]
强制移除设备
- Parameters
-
| deviceInfo | deviceInfo |
| success | success |
| failure | failure |
◆ handleDeviceLinkEncryptState: [1/2]
| - (void) handleDeviceLinkEncryptState: |
|
(Boolean) |
isLinkEncrypt |
|
处理link 加密
- Parameters
-
| isLinkEncrypt | link enctypt |
◆ handleDeviceLinkEncryptState: [2/2]
| - (void) handleDeviceLinkEncryptState: |
|
(Boolean) |
isLinkEncrypt |
|
处理link 加密
- Parameters
-
| isLinkEncrypt | link enctypt |
◆ handleDpData:ackData:type:dpsTime:reportMode: [1/2]
| - (void) handleDpData: |
|
(nullable NSData *) |
data |
| ackData: |
|
(nullable NSData *) |
ackData |
| type: |
|
(int) |
type |
| dpsTime: |
|
(nullable NSString *) |
dpsTime |
| reportMode: |
|
(NSUInteger) |
mode |
|
|
| |
◆ handleDpData:ackData:type:dpsTime:reportMode: [2/2]
| - (void) handleDpData: |
|
(nullable NSData *) |
data |
| ackData: |
|
(nullable NSData *) |
ackData |
| type: |
|
(int) |
type |
| dpsTime: |
|
(nullable NSString *) |
dpsTime |
| reportMode: |
|
(NSUInteger) |
mode |
|
|
| |
◆ handleDpData:fittingDevId:ackData:type:dpsTime:reportMode: [1/2]
| - (void) handleDpData: |
|
(nullable NSData *) |
data |
| fittingDevId: |
|
(nullable NSString *) |
fitttingDevId |
| ackData: |
|
(nullable NSData *) |
ackData |
| type: |
|
(int) |
type |
| dpsTime: |
|
(nullable NSString *) |
dpsTime |
| reportMode: |
|
(NSUInteger) |
mode |
|
|
| |
handle fitting device with time
- Parameters
-
| data | business data not contain time |
| fitttingDevId | fitting devid |
| ackData | ack data |
| type | type |
| dpsTime | dpsTime |
| mode | model |
◆ handleDpData:fittingDevId:ackData:type:dpsTime:reportMode: [2/2]
| - (void) handleDpData: |
|
(nullable NSData *) |
data |
| fittingDevId: |
|
(nullable NSString *) |
fitttingDevId |
| ackData: |
|
(nullable NSData *) |
ackData |
| type: |
|
(int) |
type |
| dpsTime: |
|
(nullable NSString *) |
dpsTime |
| reportMode: |
|
(NSUInteger) |
mode |
|
|
| |
handle fitting device with time
- Parameters
-
| data | business data not contain time |
| fitttingDevId | fitting devid |
| ackData | ack data |
| type | type |
| dpsTime | dpsTime |
| mode | model |
◆ handleDPTimeRequest:ackData:withCommandType:reportMode: [1/2]
| - (void) handleDPTimeRequest: |
|
(nullable NSString *) |
dataHexString |
| ackData: |
|
(nullable NSData *) |
ackData |
| withCommandType: |
|
(int) |
type |
| reportMode: |
|
(NSUInteger) |
mode |
|
|
| |
◆ handleDPTimeRequest:ackData:withCommandType:reportMode: [2/2]
| - (void) handleDPTimeRequest: |
|
(nullable NSString *) |
dataHexString |
| ackData: |
|
(nullable NSData *) |
ackData |
| withCommandType: |
|
(int) |
type |
| reportMode: |
|
(NSUInteger) |
mode |
|
|
| |
◆ handleDpWithTimeData:fittingDevId:ackData:type:dpsTime:reportMode: [1/2]
| - (void) handleDpWithTimeData: |
|
(nullable NSData *) |
data |
| fittingDevId: |
|
(nullable NSString *) |
fitttingDevId |
| ackData: |
|
(nullable NSData *) |
ackData |
| type: |
|
(int) |
type |
| dpsTime: |
|
(nullable NSString *) |
dpsTime |
| reportMode: |
|
(NSUInteger) |
mode |
|
|
| |
handle fitting device time and data contain time
- Parameters
-
| data | data contain time |
| fitttingDevId | fitting devid |
| ackData | ack data |
| type | type |
| dpsTime | dpsTime |
| mode | model |
◆ handleDpWithTimeData:fittingDevId:ackData:type:dpsTime:reportMode: [2/2]
| - (void) handleDpWithTimeData: |
|
(nullable NSData *) |
data |
| fittingDevId: |
|
(nullable NSString *) |
fitttingDevId |
| ackData: |
|
(nullable NSData *) |
ackData |
| type: |
|
(int) |
type |
| dpsTime: |
|
(nullable NSString *) |
dpsTime |
| reportMode: |
|
(NSUInteger) |
mode |
|
|
| |
handle fitting device time and data contain time
- Parameters
-
| data | data contain time |
| fitttingDevId | fitting devid |
| ackData | ack data |
| type | type |
| dpsTime | dpsTime |
| mode | model |
◆ handleIoTTransparentData:businessData: [1/2]
| - (void) handleIoTTransparentData: |
|
(nullable NSData *) |
data |
| businessData: |
|
(nullable NSData *) |
businessData |
|
|
| |
◆ handleIoTTransparentData:businessData: [2/2]
| - (void) handleIoTTransparentData: |
|
(nullable NSData *) |
data |
| businessData: |
|
(nullable NSData *) |
businessData |
|
|
| |
◆ handleTransparentData: [1/2]
| - (void) handleTransparentData: |
|
(nullable NSData *) |
data |
|
◆ handleTransparentData: [2/2]
| - (void) handleTransparentData: |
|
(nullable NSData *) |
data |
|
◆ publishCommandWithDeviceInfo:type:data:success:failure: [1/2]
向蓝牙设备发送控制指令
- Parameters
-
| deviceInfo | deviceInfo |
| type | type |
| data | 控制指令内容 |
| success | success |
| failure | failure |
◆ publishCommandWithDeviceInfo:type:data:success:failure: [2/2]
向蓝牙设备发送控制指令
- Parameters
-
| deviceInfo | deviceInfo |
| type | type |
| data | 控制指令内容 |
| success | success |
| failure | failure |
◆ publishCommandWithDeviceInfo:type:data:timeout:needAck:success:failure: [1/2]
◆ publishCommandWithDeviceInfo:type:data:timeout:needAck:success:failure: [2/2]
◆ publishCommandWithDeviceInfo:type:data:timeout:success:failure: [1/2]
向蓝牙设备发送控制指令
- Parameters
-
| deviceInfo | 设备信息 |
| type | 指令类型 |
| data | 控制指令内容 |
| timeout | 单条指令超时时间,若值小于等于零,则表示不支持超时 |
| success | success |
| failure | failure |
◆ publishCommandWithDeviceInfo:type:data:timeout:success:failure: [2/2]
向蓝牙设备发送控制指令
- Parameters
-
| deviceInfo | 设备信息 |
| type | 指令类型 |
| data | 控制指令内容 |
| timeout | 单条指令超时时间,若值小于等于零,则表示不支持超时 |
| success | success |
| failure | failure |
◆ publishDpsStateQueryWithDeviceInfo:dpIds:success:failure: [1/2]
下发查询 dps 状态指令(0x0003 / 0x0004 / 0x801E^0x000E)
- Parameters
-
| deviceInfo | deviceInfo |
| success | success |
| failure | failure |
◆ publishDpsStateQueryWithDeviceInfo:dpIds:success:failure: [2/2]
下发查询 dps 状态指令(0x0003 / 0x0004 / 0x801E^0x000E)
- Parameters
-
| deviceInfo | deviceInfo |
| success | success |
| failure | failure |
◆ publishDpsUseTransportPipeWithDeviceInfo:dps:success:failure: [1/2]
通过透传通道下发 dps(需设备支持,0x801E^0x000C)
- Parameters
-
| deviceInfo | deviceInfo |
| dps | dps |
| success | success |
| failure | failure |
◆ publishDpsUseTransportPipeWithDeviceInfo:dps:success:failure: [2/2]
通过透传通道下发 dps(需设备支持,0x801E^0x000C)
- Parameters
-
| deviceInfo | deviceInfo |
| dps | dps |
| success | success |
| failure | failure |
◆ publishDpsWithDeviceInfo:childNodeId:dps:success:failure: [1/2]
通过父节点向子设备发dp点
- Parameters
-
| deviceInfo | deviceInfo |
| childNodeId | child device id |
| dps | dps |
| success | success |
| failure | failure |
◆ publishDpsWithDeviceInfo:childNodeId:dps:success:failure: [2/2]
通过父节点向子设备发dp点
- Parameters
-
| deviceInfo | deviceInfo |
| childNodeId | child device id |
| dps | dps |
| success | success |
| failure | failure |
◆ publishDpsWithDeviceInfo:childNodeId:secType:dps:success:failure: [1/2]
通过父节点向子设备发dp点
- Parameters
-
| deviceInfo | deviceInfo |
| childNodeId | child device id |
| secType | 1.fitting 2.masterSlave |
| dps | dps |
| success | success |
| failure | failure |
◆ publishDpsWithDeviceInfo:childNodeId:secType:dps:success:failure: [2/2]
通过父节点向子设备发dp点
- Parameters
-
| deviceInfo | deviceInfo |
| childNodeId | child device id |
| secType | 1.fitting 2.masterSlave |
| dps | dps |
| success | success |
| failure | failure |
◆ publishDpsWithDeviceInfo:dps:success:failure: [1/2]
向蓝牙设备发送 dp 点
- Parameters
-
| deviceInfo | deviceInfo |
| dps | dps |
| success | success |
| failure | failure |
◆ publishDpsWithDeviceInfo:dps:success:failure: [2/2]
向蓝牙设备发送 dp 点
- Parameters
-
| deviceInfo | deviceInfo |
| dps | dps |
| success | success |
| failure | failure |
◆ publishFileWithDeviceInfo:fileId:fileIdentifier:fileVersion:fileData:fileType:progressBlock:success:failure: [1/2]
| - (void) publishFileWithDeviceInfo: |
|
(nullable id< ThingBLEDeviceInfoProtocol >) |
deviceInfo |
| fileId: |
|
(NSInteger) |
fileId |
| fileIdentifier: |
|
(nullable NSString *) |
fileIdentifier |
| fileVersion: |
|
(NSInteger) |
fileVersion |
| fileData: |
|
(nullable NSData *) |
fileData |
| fileType: |
|
(unsigned int) |
fileType |
| progressBlock: |
|
(nullable void(^)(float progress)) |
progressBlock |
| success: |
|
(nullable ThingSuccessHandler) |
success |
| failure: |
|
(nullable ThingFailureError) |
failure |
|
|
| |
文件传输
- Parameters
-
| deviceInfo | 设备 deviceInfo |
| fileId | 文件 ID,应用层定义。 |
| fileIdentifier | 文件标识符长度。 |
| fileVersion | 文件版本,应用层定义格式。 |
| fileData | 要传输的文件数据 |
| fileType | 要传输的文件类型,默认为0 |
| progressBlock | 传输进度 |
| success | 成功回调 |
| failure | 失败回调 |
◆ publishFileWithDeviceInfo:fileId:fileIdentifier:fileVersion:fileData:fileType:progressBlock:success:failure: [2/2]
| - (void) publishFileWithDeviceInfo: |
|
(nullable id< ThingBLEDeviceInfoProtocol >) |
deviceInfo |
| fileId: |
|
(NSInteger) |
fileId |
| fileIdentifier: |
|
(nullable NSString *) |
fileIdentifier |
| fileVersion: |
|
(NSInteger) |
fileVersion |
| fileData: |
|
(nullable NSData *) |
fileData |
| fileType: |
|
(unsigned int) |
fileType |
| progressBlock: |
|
(nullable void(^)(float progress)) |
progressBlock |
| success: |
|
(nullable ThingSuccessHandler) |
success |
| failure: |
|
(nullable ThingFailureError) |
failure |
|
|
| |
文件传输
- Parameters
-
| deviceInfo | 设备 deviceInfo |
| fileId | 文件 ID,应用层定义。 |
| fileIdentifier | 文件标识符长度。 |
| fileVersion | 文件版本,应用层定义格式。 |
| fileData | 要传输的文件数据 |
| fileType | 要传输的文件类型,默认为0 |
| progressBlock | 传输进度 |
| success | 成功回调 |
| failure | 失败回调 |
◆ publishFileWithDeviceInfo:fileId:fileIdentifier:fileVersion:fileData:progressBlock:success:failure: [1/2]
| - (void) publishFileWithDeviceInfo: |
|
(nullable id< ThingBLEDeviceInfoProtocol >) |
deviceInfo |
| fileId: |
|
(NSInteger) |
fileId |
| fileIdentifier: |
|
(nullable NSString *) |
fileIdentifier |
| fileVersion: |
|
(NSInteger) |
fileVersion |
| fileData: |
|
(nullable NSData *) |
fileData |
| progressBlock: |
|
(nullable void(^)(float progress)) |
progressBlock |
| success: |
|
(nullable ThingSuccessHandler) |
success |
| failure: |
|
(nullable ThingFailureError) |
failure |
|
|
| |
文件传输
- Parameters
-
| deviceInfo | 设备 deviceInfo |
| fileId | 文件 ID,应用层定义。 |
| fileIdentifier | 文件标识符长度。 |
| fileVersion | 文件版本,应用层定义格式。 |
| fileData | 要传输的文件数据 |
| progressBlock | 传输进度 |
| success | 成功回调 |
| failure | 失败回调 |
◆ publishFileWithDeviceInfo:fileId:fileIdentifier:fileVersion:fileData:progressBlock:success:failure: [2/2]
| - (void) publishFileWithDeviceInfo: |
|
(nullable id< ThingBLEDeviceInfoProtocol >) |
deviceInfo |
| fileId: |
|
(NSInteger) |
fileId |
| fileIdentifier: |
|
(nullable NSString *) |
fileIdentifier |
| fileVersion: |
|
(NSInteger) |
fileVersion |
| fileData: |
|
(nullable NSData *) |
fileData |
| progressBlock: |
|
(nullable void(^)(float progress)) |
progressBlock |
| success: |
|
(nullable ThingSuccessHandler) |
success |
| failure: |
|
(nullable ThingFailureError) |
failure |
|
|
| |
文件传输
- Parameters
-
| deviceInfo | 设备 deviceInfo |
| fileId | 文件 ID,应用层定义。 |
| fileIdentifier | 文件标识符长度。 |
| fileVersion | 文件版本,应用层定义格式。 |
| fileData | 要传输的文件数据 |
| progressBlock | 传输进度 |
| success | 成功回调 |
| failure | 失败回调 |
◆ publishIoTTransparentDataWithDeviceInfo:type:data:success:failure: [1/2]
发送透传数据(分包)
- Parameters
-
| dev | deviceInfo |
| type | type |
| data | 透传数据 |
| success | success |
| failure | failure |
◆ publishIoTTransparentDataWithDeviceInfo:type:data:success:failure: [2/2]
发送透传数据(分包)
- Parameters
-
| dev | deviceInfo |
| type | type |
| data | 透传数据 |
| success | success |
| failure | failure |
◆ publishSplitCommandWithDeviceInfo:type:head:data:success:failure: [1/2]
◆ publishSplitCommandWithDeviceInfo:type:head:data:success:failure: [2/2]
◆ publishTransparentDataWithDeviceInfo:data:success:failure: [1/2]
发送透传数据(可分包)
- Parameters
-
| dev | deviceInfo |
| data | 透传数据 |
| success | success |
| failure | failure |
◆ publishTransparentDataWithDeviceInfo:data:success:failure: [2/2]
发送透传数据(可分包)
- Parameters
-
| dev | deviceInfo |
| data | 透传数据 |
| success | success |
| failure | failure |
◆ publishWifiTransportDataWithDeviceInfo:data:success:failure: [1/2]
◆ publishWifiTransportDataWithDeviceInfo:data:success:failure: [2/2]
◆ queryFittingInfo:activeQuery:success:failure: [1/2]
◆ queryFittingInfo:activeQuery:success:failure: [2/2]
◆ removeWithDeviceInfo:success:failure: [1/2]
移除设备
- Parameters
-
| deviceInfo | deviceInfo |
| success | success |
| failure | failure |
◆ removeWithDeviceInfo:success:failure: [2/2]
移除设备
- Parameters
-
| deviceInfo | deviceInfo |
| success | success |
| failure | failure |
◆ resetAllparameters [1/2]
| - (void) resetAllparameters |
|
|
|
◆ resetAllparameters [2/2]
| - (void) resetAllparameters |
|
|
|
◆ resetDeviceWithDeviceInfo:random:resetKey:success:failure: [1/2]
扫码解绑
- Parameters
-
| deviceInfo | deviceInfo |
| random | random |
| resetKey | resetKey |
| success | success |
| failure | failure |
◆ resetDeviceWithDeviceInfo:random:resetKey:success:failure: [2/2]
扫码解绑
- Parameters
-
| deviceInfo | deviceInfo |
| random | random |
| resetKey | resetKey |
| success | success |
| failure | failure |
◆ resetWithDeviceInfo:success:failure: [1/2]
恢复出厂设置
- Parameters
-
| deviceInfo | deviceInfo |
| success | success |
| failure | failure |
◆ resetWithDeviceInfo:success:failure: [2/2]
恢复出厂设置
- Parameters
-
| deviceInfo | deviceInfo |
| success | success |
| failure | failure |
◆ sendOTAPackWithDeviceInfo:childNodeId:childPid:childDevid:otaData:otaType:otaVersion:success:failure: [1/2]
| - (void) sendOTAPackWithDeviceInfo: |
|
(id< ThingBLEDeviceInfoProtocol >) |
deviceInfo |
| childNodeId: |
|
(NSString *) |
childNodeId |
| childPid: |
|
(NSString *) |
childPid |
| childDevid: |
|
(NSString *) |
devId |
| otaData: |
|
(NSData *) |
otaData |
| otaType: |
|
(ThingSmartBLEOTAType) |
otaType |
| otaVersion: |
|
(NSString *) |
otaVersion |
| success: |
|
(ThingSuccessHandler) |
success |
| failure: |
|
(ThingFailureError) |
failure |
|
|
| |
给配件发送OTA包,升级前务必保证设备已经蓝牙连接
- Parameters
-
| deviceInfo | 广播对象 |
| childNodeId | 子设备 node Id |
| childPid | 子设备 pid |
| otaData | 升级固件数据 |
| otaType | otaType |
| otaVersion | 升级版本 |
| success | success |
| failure | failure |
◆ sendOTAPackWithDeviceInfo:childNodeId:childPid:childDevid:otaData:otaType:otaVersion:success:failure: [2/2]
| - (void) sendOTAPackWithDeviceInfo: |
|
(id< ThingBLEDeviceInfoProtocol >) |
deviceInfo |
| childNodeId: |
|
(NSString *) |
childNodeId |
| childPid: |
|
(NSString *) |
childPid |
| childDevid: |
|
(NSString *) |
devId |
| otaData: |
|
(NSData *) |
otaData |
| otaType: |
|
(ThingSmartBLEOTAType) |
otaType |
| otaVersion: |
|
(NSString *) |
otaVersion |
| success: |
|
(ThingSuccessHandler) |
success |
| failure: |
|
(ThingFailureError) |
failure |
|
|
| |
给配件发送OTA包,升级前务必保证设备已经蓝牙连接
- Parameters
-
| deviceInfo | 广播对象 |
| childNodeId | 子设备 node Id |
| childPid | 子设备 pid |
| otaData | 升级固件数据 |
| otaType | otaType |
| otaVersion | 升级版本 |
| success | success |
| failure | failure |
◆ sendOTAPackWithDeviceInfo:otaData:otaType:otaVersion:success:failure: [1/2]
| - (void) sendOTAPackWithDeviceInfo: |
|
(nullable id< ThingBLEDeviceInfoProtocol >) |
deviceInfo |
| otaData: |
|
(nullable NSData *) |
otaData |
| otaType: |
|
(ThingSmartBLEOTAType) |
otaType |
| otaVersion: |
|
(nullable NSString *) |
otaVersion |
| success: |
|
(__nullable ThingSuccessHandler) |
success |
| failure: |
|
(__nullable ThingFailureError) |
failure |
|
|
| |
发送OTA包,升级固件 升级前请务必保证设备已通过蓝牙连接
- Parameters
-
| deviceInfo | deviceInfo |
| otaData | 升级固件的数据 |
| otaType | 升级类型 |
| otaVersion | 升级版本 |
| success | success |
| failure | failure |
◆ sendOTAPackWithDeviceInfo:otaData:otaType:otaVersion:success:failure: [2/2]
| - (void) sendOTAPackWithDeviceInfo: |
|
(nullable id< ThingBLEDeviceInfoProtocol >) |
deviceInfo |
| otaData: |
|
(nullable NSData *) |
otaData |
| otaType: |
|
(ThingSmartBLEOTAType) |
otaType |
| otaVersion: |
|
(nullable NSString *) |
otaVersion |
| success: |
|
(__nullable ThingSuccessHandler) |
success |
| failure: |
|
(__nullable ThingFailureError) |
failure |
|
|
| |
发送OTA包,升级固件 升级前请务必保证设备已通过蓝牙连接
- Parameters
-
| deviceInfo | deviceInfo |
| otaData | 升级固件的数据 |
| otaType | 升级类型 |
| otaVersion | 升级版本 |
| success | success |
| failure | failure |
◆ sendOTAPackWithDeviceInfo:pid:otaData:otaType:otaVersion:success:failure: [1/2]
| - (void) sendOTAPackWithDeviceInfo: |
|
(nullable id< ThingBLEDeviceInfoProtocol >) |
deviceInfo |
| pid: |
|
(nullable NSString *) |
pid |
| otaData: |
|
(nullable NSData *) |
otaData |
| otaType: |
|
(ThingSmartBLEOTAType) |
otaType |
| otaVersion: |
|
(nullable NSString *) |
otaVersion |
| success: |
|
(__nullable ThingSuccessHandler) |
success |
| failure: |
|
(__nullable ThingFailureError) |
failure |
|
|
| |
发送OTA包,升级固件 升级前请务必保证设备已通过蓝牙连接
- Parameters
-
| deviceInfo | deviceInfo |
| pid | productId |
| otaData | 升级固件的数据 |
| otaType | 升级类型 |
| otaVersion | 升级版本 |
| success | success |
| failure | failure |
◆ sendOTAPackWithDeviceInfo:pid:otaData:otaType:otaVersion:success:failure: [2/2]
| - (void) sendOTAPackWithDeviceInfo: |
|
(nullable id< ThingBLEDeviceInfoProtocol >) |
deviceInfo |
| pid: |
|
(nullable NSString *) |
pid |
| otaData: |
|
(nullable NSData *) |
otaData |
| otaType: |
|
(ThingSmartBLEOTAType) |
otaType |
| otaVersion: |
|
(nullable NSString *) |
otaVersion |
| success: |
|
(__nullable ThingSuccessHandler) |
success |
| failure: |
|
(__nullable ThingFailureError) |
failure |
|
|
| |
发送OTA包,升级固件 升级前请务必保证设备已通过蓝牙连接
- Parameters
-
| deviceInfo | deviceInfo |
| pid | productId |
| otaData | 升级固件的数据 |
| otaType | 升级类型 |
| otaVersion | 升级版本 |
| success | success |
| failure | failure |
◆ stopFileTransfer: [1/4]
◆ stopFileTransfer: [2/4]
◆ stopFileTransfer: [3/4]
◆ stopFileTransfer: [4/4]
◆ cryptologyManager
◆ deviceInfo
◆ handlerDelegate
◆ packageNotify
◆ writeNotifyManager
The documentation for this protocol was generated from the following files:
- /Users/humtong/Downloads/Pods_副本/ThingSmartBLECoreKit/Build/ThingSmartBLECoreKit.xcframework/ios-arm64_x86_64-simulator/ThingSmartBLECoreKit.framework/Headers/ThingBLEConfigProtocol.h
- /Users/humtong/Downloads/Pods_副本/ThingSmartBLECoreKit/Build/ThingSmartBLECoreKit.xcframework/ios-arm64/ThingSmartBLECoreKit.framework/Headers/ThingBLEConfigProtocol.h