Tuya iOS Smart Life App SDK 5.15.0
ThingSmartSweeperDevice Class Reference

#import <ThingSmartSweeperDevice.h>

Inheritance diagram for ThingSmartSweeperDevice:
ThingSmartDevice ThingSmartDevice

Instance Methods

(void) - subscribeDeviceDataTransfer
 
(void) - unsubscribeDeviceDataTransfer
 
(void) - connectDeviceByP2P:failure:
 
(void) - connectDeviceByP2P:success:failure:
 
(void) - startObserverSweeperDataByP2P:receiveP2PData:failure:
 
(void) - stopObserverSweeperDataByP2P:failure:
 
(void) - onDestroyP2P
 Destroy P2P SDK and cancel all task. More...
 
(BOOL) - P2PActiveCheck
 Check p2p session is active. More...
 
(void) - initCloudConfigWithSuccess:failure:
 
(void) - updateCloudConfigWithSuccess:failure:
 
(nullable NSString *) - getCloudFileDownloadURLWithBucket:path:
 
(void) - getSweeperDataWithBucket:path:success:failure:
 
(void) - getSweeperCurrentPathWithSuccess:failure:
 
(void) - getSweeperHistoryDataWithLimit:offset:success:failure:
 
(void) - getSweeperHistoryDataWithLimit:offset:startTime:endTime:success:failure:
 
(void) - removeSweeperHistoryDataWithFileIds:success:failure:
 
(void) - removeAllHistoryDataWithSuccess:failure:
 
(void) - getSweeperMultiHistoryDataWithLimit:offset:success:failure:
 
(void) - getSweeperMultiHistoryDataWithLimit:offset:startTime:endTime:success:failure:
 
(void) - removeAllMultiHistoryDataWithSuccess:failure:
 
(void) - queryLatestCleanRecord:start:size:complete:
 
(void) - queryLatestCleanRecordV2:start:size:complete:
 
(void) - getHistoryCleanRecordList:offset:limit:startTime:endTime:complete:
 
(void) - getCleanRecordDetail:subRecordId:start:size:complete:
 
(void) - getCleanRecordDetailV2:subRecordId:mapId:datatype:start:size:complete:
 
(void) - deleteHistoryCleanRecord:recordId:complete:
 
(void) - getFileDownloadInfoWithSuccess:failure:
 
(void) - getFileDownloadInfoWithLimit:offset:success:failure:
 
(void) - downloadFileWithFileId:success:failure:
 
(void) - getFileDownloadRateWithSuccess:failure:
 
(void) - sweeperFileNameUpdateWithFileId:fileName:success:failure:
 
(void) - subscribeDeviceDataTransfer
 
(void) - unsubscribeDeviceDataTransfer
 
(void) - connectDeviceByP2P:failure:
 
(void) - connectDeviceByP2P:success:failure:
 
(void) - startObserverSweeperDataByP2P:receiveP2PData:failure:
 
(void) - stopObserverSweeperDataByP2P:failure:
 
(void) - onDestroyP2P
 Destroy P2P SDK and cancel all task. More...
 
(BOOL) - P2PActiveCheck
 Check p2p session is active. More...
 
(void) - initCloudConfigWithSuccess:failure:
 
(void) - updateCloudConfigWithSuccess:failure:
 
(nullable NSString *) - getCloudFileDownloadURLWithBucket:path:
 
(void) - getSweeperDataWithBucket:path:success:failure:
 
(void) - getSweeperCurrentPathWithSuccess:failure:
 
(void) - getSweeperHistoryDataWithLimit:offset:success:failure:
 
(void) - getSweeperHistoryDataWithLimit:offset:startTime:endTime:success:failure:
 
(void) - removeSweeperHistoryDataWithFileIds:success:failure:
 
(void) - removeAllHistoryDataWithSuccess:failure:
 
(void) - getSweeperMultiHistoryDataWithLimit:offset:success:failure:
 
(void) - getSweeperMultiHistoryDataWithLimit:offset:startTime:endTime:success:failure:
 
(void) - removeAllMultiHistoryDataWithSuccess:failure:
 
(void) - queryLatestCleanRecord:start:size:complete:
 
(void) - queryLatestCleanRecordV2:start:size:complete:
 
(void) - getHistoryCleanRecordList:offset:limit:startTime:endTime:complete:
 
(void) - getCleanRecordDetail:subRecordId:start:size:complete:
 
(void) - getCleanRecordDetailV2:subRecordId:mapId:datatype:start:size:complete:
 
(void) - deleteHistoryCleanRecord:recordId:complete:
 
(void) - getFileDownloadInfoWithSuccess:failure:
 
(void) - getFileDownloadInfoWithLimit:offset:success:failure:
 
(void) - downloadFileWithFileId:success:failure:
 
(void) - getFileDownloadRateWithSuccess:failure:
 
(void) - sweeperFileNameUpdateWithFileId:fileName:success:failure:
 
- Instance Methods inherited from ThingSmartDevice
(nullable instancetype) - initWithDeviceId:
 
(instancetype) - NS_UNAVAILABLE
 
(ThingDeviceOnlineMode- onlineMode
 Returns the device online status. More...
 
(void) - publishDps:success:failure:
 
(void) - publishDps:mode:success:failure:
 
(void) - publishDps:communicationTypes:success:failure:
 
(void) - updateName:success:failure:
 
(void) - updateIcon:success:failure:
 
(void) - updateIconWithCloudKey:success:failure:
 
(void) - updateIconWithURL:success:failure:
 
(void) - syncWithCloud:failure:
 
(void) - remove:failure:
 
(void) - removeFromCloud:failure:
 
(void) - resetFactory:failure:
 
(void) - resetFactoryFromCloud:failure:
 
(void) - getSubDeviceListFromCloudWithSuccess:failure:
 
(void) - syncLocationToDeviceWithSucecess:failure:
 
(void) - getFirmwareUpgradeInfo:failure:
 
(void) - upgradeFirmware:success:failure:
 
(void) - cancelUpgradeFirmware:success:failure:
 
("This method is deprecated") - __deprecated_msg
 Cancels the firmware update request. More...
 
(void) - updateDeviceVersion:type:success:failure:
 
(void) - getAutoUpgradeSwitchInfoWithSuccess:failure:
 
(void) - saveUpgradeInfoWithSwitchValue:success:failure:
 
(void) - getDevPropertyWithSuccess:failure:
 
(void) - setDevPropertyWithCode:value:success:failure:
 
(void) - publishDpWithCommands:success:failure:
 
(void) - getThingModelWithSuccess:failure:
 
(void) - publishThingMessageWithType:payload:success:failure:
 
(void) - queryDeviceOperateLogWithDpIds:offset:limit:startTime:endTime:isASC:success:failure:
 
(void) - sendCacheDps:validity:dpCacheType:success:failure:
 
(void) - infraredPublishDps:actionDps:reportDps:success:failure:
 
(nullable instancetype) - initWithDeviceId:
 
(instancetype) - NS_UNAVAILABLE
 
(ThingDeviceOnlineMode- onlineMode
 Returns the device online status. More...
 
(void) - publishDps:success:failure:
 
(void) - publishDps:mode:success:failure:
 
(void) - publishDps:communicationTypes:success:failure:
 
(void) - updateName:success:failure:
 
(void) - updateIcon:success:failure:
 
(void) - updateIconWithCloudKey:success:failure:
 
(void) - updateIconWithURL:success:failure:
 
(void) - syncWithCloud:failure:
 
(void) - remove:failure:
 
(void) - removeFromCloud:failure:
 
(void) - resetFactory:failure:
 
(void) - resetFactoryFromCloud:failure:
 
(void) - getSubDeviceListFromCloudWithSuccess:failure:
 
(void) - syncLocationToDeviceWithSucecess:failure:
 
(void) - getFirmwareUpgradeInfo:failure:
 
(void) - upgradeFirmware:success:failure:
 
(void) - cancelUpgradeFirmware:success:failure:
 
("This method is deprecated") - __deprecated_msg
 Cancels the firmware update request. More...
 
(void) - updateDeviceVersion:type:success:failure:
 
(void) - getAutoUpgradeSwitchInfoWithSuccess:failure:
 
(void) - saveUpgradeInfoWithSwitchValue:success:failure:
 
(void) - getDevPropertyWithSuccess:failure:
 
(void) - setDevPropertyWithCode:value:success:failure:
 
(void) - publishDpWithCommands:success:failure:
 
(void) - getThingModelWithSuccess:failure:
 
(void) - publishThingMessageWithType:payload:success:failure:
 
(void) - queryDeviceOperateLogWithDpIds:offset:limit:startTime:endTime:isASC:success:failure:
 
(void) - sendCacheDps:validity:dpCacheType:success:failure:
 
(void) - infraredPublishDps:actionDps:reportDps:success:failure:
 
(nullable instancetype) - initWithDeviceId:
 
(instancetype) - NS_UNAVAILABLE
 
(ThingDeviceOnlineMode- onlineMode
 Returns the device online status. More...
 
(void) - publishDps:success:failure:
 
(void) - publishDps:mode:success:failure:
 
(void) - publishDps:communicationTypes:success:failure:
 
(void) - updateName:success:failure:
 
(void) - updateIcon:success:failure:
 
(void) - updateIconWithCloudKey:success:failure:
 
(void) - updateIconWithURL:success:failure:
 
(void) - syncWithCloud:failure:
 
(void) - remove:failure:
 
(void) - removeFromCloud:failure:
 
(void) - resetFactory:failure:
 
(void) - resetFactoryFromCloud:failure:
 
(void) - getSubDeviceListFromCloudWithSuccess:failure:
 
(void) - syncLocationToDeviceWithSucecess:failure:
 
(void) - getFirmwareUpgradeInfo:failure:
 
(void) - upgradeFirmware:success:failure:
 
(void) - cancelUpgradeFirmware:success:failure:
 
("This method is deprecated") - __deprecated_msg
 Cancels the firmware update request. More...
 
(void) - updateDeviceVersion:type:success:failure:
 
(void) - getAutoUpgradeSwitchInfoWithSuccess:failure:
 
(void) - saveUpgradeInfoWithSwitchValue:success:failure:
 
(void) - getDevPropertyWithSuccess:failure:
 
(void) - setDevPropertyWithCode:value:success:failure:
 
(void) - publishDpWithCommands:success:failure:
 
(void) - getThingModelWithSuccess:failure:
 
(void) - publishThingMessageWithType:payload:success:failure:
 
(void) - queryDeviceOperateLogWithDpIds:offset:limit:startTime:endTime:isASC:success:failure:
 
(void) - sendCacheDps:validity:dpCacheType:success:failure:
 
(void) - infraredPublishDps:actionDps:reportDps:success:failure:
 
(nullable instancetype) - initWithDeviceId:
 
(instancetype) - NS_UNAVAILABLE
 
(ThingDeviceOnlineMode- onlineMode
 Returns the device online status. More...
 
(void) - publishDps:success:failure:
 
(void) - publishDps:mode:success:failure:
 
(void) - publishDps:communicationTypes:success:failure:
 
(void) - updateName:success:failure:
 
(void) - updateIcon:success:failure:
 
(void) - updateIconWithCloudKey:success:failure:
 
(void) - updateIconWithURL:success:failure:
 
(void) - syncWithCloud:failure:
 
(void) - remove:failure:
 
(void) - removeFromCloud:failure:
 
(void) - resetFactory:failure:
 
(void) - resetFactoryFromCloud:failure:
 
(void) - getSubDeviceListFromCloudWithSuccess:failure:
 
(void) - syncLocationToDeviceWithSucecess:failure:
 
(void) - getFirmwareUpgradeInfo:failure:
 
(void) - upgradeFirmware:success:failure:
 
(void) - cancelUpgradeFirmware:success:failure:
 
("This method is deprecated") - __deprecated_msg
 Cancels the firmware update request. More...
 
(void) - updateDeviceVersion:type:success:failure:
 
(void) - getAutoUpgradeSwitchInfoWithSuccess:failure:
 
(void) - saveUpgradeInfoWithSwitchValue:success:failure:
 
(void) - getDevPropertyWithSuccess:failure:
 
(void) - setDevPropertyWithCode:value:success:failure:
 
(void) - publishDpWithCommands:success:failure:
 
(void) - getThingModelWithSuccess:failure:
 
(void) - publishThingMessageWithType:payload:success:failure:
 
(void) - queryDeviceOperateLogWithDpIds:offset:limit:startTime:endTime:isASC:success:failure:
 
(void) - sendCacheDps:validity:dpCacheType:success:failure:
 
(void) - infraredPublishDps:actionDps:reportDps:success:failure:
 
(void) - connectDeviceWithParams:success:failure:
 
(void) - connectDeviceWithParams:success:failure:
 
(void) - connectDeviceWithParams:success:failure:
 
(void) - connectDeviceWithParams:success:failure:
 
(void) - disconnect:
 
(void) - disconnect:
 
(void) - disconnect:
 
(void) - disconnect:
 
(ThingDoorBellError- answerDoorBellCallWithType:messageId:
 
(ThingDoorBellError- answerDoorBellCallWithType:messageId:
 
(ThingDoorBellError- hangupDoorBellCallWithType:messageId:
 
(ThingDoorBellError- hangupDoorBellCallWithType:messageId:
 
(ThingDoorBellError- sendHeartbeatWithType:messageId:
 
(ThingDoorBellError- sendHeartbeatWithType:messageId:
 
(void) - handleRemoteControlGroup:success:failure:
 
(void) - handleRemoteControlGroup:success:failure:
 
(void) - handleRemoteControlGroup:success:failure:
 
(void) - handleRemoteControlGroup:success:failure:
 
(void) - updateLocalKeySuccess:failure:
 Update device local key. More...
 
(void) - updateLocalKeySuccess:failure:
 Update device local key. More...
 
(void) - updateLocalKeySuccess:failure:
 Update device local key. More...
 
(void) - updateLocalKeySuccess:failure:
 Update device local key. More...
 
(void) - getOfflineReminderSupportStatusWithSuccess:failure:
 
(void) - getOfflineReminderSupportStatusWithSuccess:failure:
 
(void) - getOfflineReminderSupportStatusWithSuccess:failure:
 
(void) - getOfflineReminderSupportStatusWithSuccess:failure:
 
(void) - getOfflineReminderStatusWithSuccess:failure:
 
(void) - getOfflineReminderStatusWithSuccess:failure:
 
(void) - getOfflineReminderStatusWithSuccess:failure:
 
(void) - getOfflineReminderStatusWithSuccess:failure:
 
(void) - setOfflineReminderStatus:success:failure:
 
(void) - setOfflineReminderStatus:success:failure:
 
(void) - setOfflineReminderStatus:success:failure:
 
(void) - setOfflineReminderStatus:success:failure:
 
(void) - requestCachedDps:failure:
 
(void) - requestCachedDps:failure:
 
(void) - pushDpsWithHttp:success:failure:
 
(void) - pushDpsWithHttp:success:failure:
 
(void) - checkFirmwareUpgrade:failure:
 
(void) - checkFirmwareUpgrade:failure:
 
(void) - checkFirmwareUpgrade:failure:
 
(void) - checkFirmwareUpgrade:failure:
 
(void) - checkFirmwareUpgradeWithExtraInfo:success:failure:
 
(void) - checkFirmwareUpgradeWithExtraInfo:success:failure:
 
(void) - checkFirmwareUpgradeWithExtraInfo:success:failure:
 
(void) - checkFirmwareUpgradeWithExtraInfo:success:failure:
 
(void) - startFirmwareUpgrade:
 
(void) - startFirmwareUpgrade:
 
(void) - startFirmwareUpgrade:
 
(void) - startFirmwareUpgrade:
 
(void) - confirmWarningUpgradeTask:
 
(void) - confirmWarningUpgradeTask:
 
(void) - confirmWarningUpgradeTask:
 
(void) - confirmWarningUpgradeTask:
 
(void) - cancelFirmwareUpgrade:failure:
 
(void) - cancelFirmwareUpgrade:failure:
 
(void) - cancelFirmwareUpgrade:failure:
 
(void) - cancelFirmwareUpgrade:failure:
 
(void) - getFirmwareUpgradingStatus:failure:
 
(void) - getFirmwareUpgradingStatus:failure:
 
(void) - getFirmwareUpgradingStatus:failure:
 
(void) - getFirmwareUpgradingStatus:failure:
 
(void) - getDeviceLocalFirmwareInfo:failure:
 
(void) - getDeviceLocalFirmwareInfo:failure:
 
(void) - getDeviceLocalFirmwareInfo:failure:
 
(void) - getDeviceLocalFirmwareInfo:failure:
 
(BOOL) - isSupportCheckFirmware
 Determine if the device can check the firmware. More...
 
(BOOL) - isSupportCheckFirmware
 Determine if the device can check the firmware. More...
 
(BOOL) - isSupportCheckFirmware
 Determine if the device can check the firmware. More...
 
(BOOL) - isSupportCheckFirmware
 Determine if the device can check the firmware. More...
 
(void) - memberCheckFirmwareStatus:failure:
 
(void) - memberCheckFirmwareStatus:failure:
 
(void) - memberCheckFirmwareStatus:failure:
 
(void) - memberCheckFirmwareStatus:failure:
 
(void) - updateBootOTAWithSingleBootStatus:
 
(void) - updateBootOTAWithSingleBootStatus:
 
(void) - updateBootOTAWithSingleBootStatus:
 
(void) - updateBootOTAWithSingleBootStatus:
 
(void) - getShareInfoWithSuccess:failure:
 
(void) - getShareInfoWithSuccess:failure:
 
(void) - getShareInfoWithSuccess:failure:
 
(void) - getShareInfoWithSuccess:failure:
 
(void) - removeReceiveDeviceShareWithSuccess:failure:
 
(void) - removeReceiveDeviceShareWithSuccess:failure:
 
(void) - removeReceiveDeviceShareWithSuccess:failure:
 
(void) - removeReceiveDeviceShareWithSuccess:failure:
 
(void) - tsod_publishDPWithCode:DPValue:success:failure:
 
(void) - tsod_publishDPWithCode:DPValue:success:failure:
 

Properties

id< ThingSmartSweeperDeviceDelegatedelegate
 
BOOL shouldAutoDownloadData
 
- Properties inherited from ThingSmartDevice
NSString * devId
 Returns the device id. More...
 
ThingSmartDeviceModeldeviceModel
 Returns the model of basic device information. More...
 
id< ThingSmartDeviceDelegatedelegate
 

Additional Inherited Members

- Class Methods inherited from ThingSmartDevice
(nullable instancetype) + deviceWithDeviceId:
 
(void) + syncDeviceInfoWithDevId:success:failure:
 
(void) + syncSubDeviceInfoWithGatewayId:devId:success:failure:
 
(void) + syncSubDeviceLocalKeyWithGatewayId:nodeIds:success:failure:
 
(void) + getThingModelWithProductId:productVersion:success:failure:
 
(nullable instancetype) + deviceWithDeviceId:
 
(void) + syncDeviceInfoWithDevId:success:failure:
 
(void) + syncSubDeviceInfoWithGatewayId:devId:success:failure:
 
(void) + syncSubDeviceLocalKeyWithGatewayId:nodeIds:success:failure:
 
(void) + getThingModelWithProductId:productVersion:success:failure:
 
(nullable instancetype) + deviceWithDeviceId:
 
(void) + syncDeviceInfoWithDevId:success:failure:
 
(void) + syncSubDeviceInfoWithGatewayId:devId:success:failure:
 
(void) + syncSubDeviceLocalKeyWithGatewayId:nodeIds:success:failure:
 
(void) + getThingModelWithProductId:productVersion:success:failure:
 
(nullable instancetype) + deviceWithDeviceId:
 
(void) + syncDeviceInfoWithDevId:success:failure:
 
(void) + syncSubDeviceInfoWithGatewayId:devId:success:failure:
 
(void) + syncSubDeviceLocalKeyWithGatewayId:nodeIds:success:failure:
 
(void) + getThingModelWithProductId:productVersion:success:failure:
 
(void) + syncDeviceInfoWithDevId:homeId:success:failure:
 
(void) + syncDeviceInfoWithDevId:homeId:success:failure:
 
(void) + syncDeviceInfoWithDevId:homeId:success:failure:
 
(void) + syncDeviceInfoWithDevId:homeId:success:failure:
 

Detailed Description

Definition at line 87 of file ThingSmartSweeperDevice.h.

Method Documentation

◆ connectDeviceByP2P:failure: [1/2]

- (void) connectDeviceByP2P: (void(^)(void))  success
failure: (void(^)(NSError *_Nullable error))  failure 

Connect to device by P2P

Parameters
successcallback when connect success
failurecallback when connect fail

◆ connectDeviceByP2P:failure: [2/2]

- (void) connectDeviceByP2P: (void(^)(void))  success
failure: (void(^)(NSError *_Nullable error))  failure 

Connect to device by P2P

Parameters
successcallback when connect success
failurecallback when connect fail

◆ connectDeviceByP2P:success:failure: [1/2]

- (void) connectDeviceByP2P: (BOOL)  isStopReconnect
success: (void(^)(void))  success
failure: (void(^)(NSError *_Nullable error))  failure 

Connect to device by P2P

Parameters
isStopReconnectis Stop the internal reconnection
successcallback when connect success
failurecallback when connect fail

◆ connectDeviceByP2P:success:failure: [2/2]

- (void) connectDeviceByP2P: (BOOL)  isStopReconnect
success: (void(^)(void))  success
failure: (void(^)(NSError *_Nullable error))  failure 

Connect to device by P2P

Parameters
isStopReconnectis Stop the internal reconnection
successcallback when connect success
failurecallback when connect fail

◆ deleteHistoryCleanRecord:recordId:complete: [1/2]

- (void) deleteHistoryCleanRecord: (NSString *)  devId
recordId: (NSString *)  recordId
complete: (void(^)(BOOL success, NSError *error))  complete 

删除历史清扫记录

Parameters
devId设备 ID
recordId清扫记录 ID

◆ deleteHistoryCleanRecord:recordId:complete: [2/2]

- (void) deleteHistoryCleanRecord: (NSString *)  devId
recordId: (NSString *)  recordId
complete: (void(^)(BOOL success, NSError *error))  complete 

删除历史清扫记录

Parameters
devId设备 ID
recordId清扫记录 ID

◆ downloadFileWithFileId:success:failure: [1/2]

- (void) downloadFileWithFileId: (NSString *)  fileId
success: (void(^)(id result))  success
failure: (void(^)(NSError *_Nullable error))  failure 

下发下载文件指令,设备开始下载文件, 升级成功或失败会通过 ThingSmartFileDownloadDelegate 返回

Parameters
fileIdfileId of ThingSmartFileDownloadModel
success成功回调 (status 0:未下载 1:下载中)
failure失败回调

◆ downloadFileWithFileId:success:failure: [2/2]

- (void) downloadFileWithFileId: (NSString *)  fileId
success: (void(^)(id result))  success
failure: (void(^)(NSError *_Nullable error))  failure 

下发下载文件指令,设备开始下载文件, 升级成功或失败会通过 ThingSmartFileDownloadDelegate 返回

Parameters
fileIdfileId of ThingSmartFileDownloadModel
success成功回调 (status 0:未下载 1:下载中)
failure失败回调

◆ getCleanRecordDetail:subRecordId:start:size:complete: [1/2]

- (void) getCleanRecordDetail: (NSString *)  devId
subRecordId: (NSInteger)  subRecordId
start: (NSString *)  start
size: (NSInteger)  size
complete: (void(^)(ThingSmartSweeperRecordDetail *model, NSError *error))  complete 

流服务V1.0 清扫记录详情

Parameters
devId设备 ID
subRecordId清扫记录 ID,通过解析历史记录列表的value数据,根据数据长度使用不同的解析规则,规则见下表
start开始位置。第一次传空,之后取下一页时填上一页返回值里的 startRow 值
size查询数据的大小,固定参数为 500

◆ getCleanRecordDetail:subRecordId:start:size:complete: [2/2]

- (void) getCleanRecordDetail: (NSString *)  devId
subRecordId: (NSInteger)  subRecordId
start: (NSString *)  start
size: (NSInteger)  size
complete: (void(^)(ThingSmartSweeperRecordDetail *model, NSError *error))  complete 

流服务V1.0 清扫记录详情

Parameters
devId设备 ID
subRecordId清扫记录 ID,通过解析历史记录列表的value数据,根据数据长度使用不同的解析规则,规则见下表
start开始位置。第一次传空,之后取下一页时填上一页返回值里的 startRow 值
size查询数据的大小,固定参数为 500

◆ getCleanRecordDetailV2:subRecordId:mapId:datatype:start:size:complete: [1/2]

- (void) getCleanRecordDetailV2: (NSString *)  devId
subRecordId: (NSInteger)  subRecordId
mapId: (NSInteger)  mapId
datatype: (NSInteger)  datatype
start: (NSString *)  start
size: (NSInteger)  size
complete: (void(^)(ThingSmartSweeperRecordDetail *model, NSError *error))  complete 

流服务V2.0 清扫记录详情

Parameters
devId设备 ID
subRecordId清扫记录 ID,通过解析历史记录列表的value数据,根据数据长度使用不同的解析规则,规则见下表
mapId子地图 ID
datatype地图类型
start开始位置。第一次传空,之后取下一页时填上一页返回值里的 startRow 值
size查询数据的大小,固定参数为 500

◆ getCleanRecordDetailV2:subRecordId:mapId:datatype:start:size:complete: [2/2]

- (void) getCleanRecordDetailV2: (NSString *)  devId
subRecordId: (NSInteger)  subRecordId
mapId: (NSInteger)  mapId
datatype: (NSInteger)  datatype
start: (NSString *)  start
size: (NSInteger)  size
complete: (void(^)(ThingSmartSweeperRecordDetail *model, NSError *error))  complete 

流服务V2.0 清扫记录详情

Parameters
devId设备 ID
subRecordId清扫记录 ID,通过解析历史记录列表的value数据,根据数据长度使用不同的解析规则,规则见下表
mapId子地图 ID
datatype地图类型
start开始位置。第一次传空,之后取下一页时填上一页返回值里的 startRow 值
size查询数据的大小,固定参数为 500

◆ getCloudFileDownloadURLWithBucket:path: [1/2]

- (nullable NSString *) getCloudFileDownloadURLWithBucket: (NSString *)  bucket
path: (NSString *)  path 

获取数据文件地址

Parameters
bucket文件存储的bucket
path文件路径

◆ getCloudFileDownloadURLWithBucket:path: [2/2]

- (nullable NSString *) getCloudFileDownloadURLWithBucket: (NSString *)  bucket
path: (NSString *)  path 

获取数据文件地址

Parameters
bucket文件存储的bucket
path文件路径

◆ getFileDownloadInfoWithLimit:offset:success:failure: [1/2]

- (void) getFileDownloadInfoWithLimit: (NSUInteger)  limit
offset: (NSUInteger)  offset
success: (void(^)(NSArray< ThingSmartFileDownloadModel * > *upgradeFileList, NSUInteger totalCount))  success
failure: (void(^)(NSError *_Nullable error))  failure 

获取文件信息(分页查询)

Parameters
limit一次获取数据的数量(建议最大不要超过100)
offset获取数据的偏移量(用于分页)
success成功回调
failure失败回调

◆ getFileDownloadInfoWithLimit:offset:success:failure: [2/2]

- (void) getFileDownloadInfoWithLimit: (NSUInteger)  limit
offset: (NSUInteger)  offset
success: (void(^)(NSArray< ThingSmartFileDownloadModel * > *upgradeFileList, NSUInteger totalCount))  success
failure: (void(^)(NSError *_Nullable error))  failure 

获取文件信息(分页查询)

Parameters
limit一次获取数据的数量(建议最大不要超过100)
offset获取数据的偏移量(用于分页)
success成功回调
failure失败回调

◆ getFileDownloadInfoWithSuccess:failure: [1/2]

- (void) getFileDownloadInfoWithSuccess: (void(^)(NSArray< ThingSmartFileDownloadModel * > *upgradeFileList))  success
failure: (void(^)(NSError *_Nullable error))  failure 

获取文件信息

Parameters
success成功回调
failure失败回调

◆ getFileDownloadInfoWithSuccess:failure: [2/2]

- (void) getFileDownloadInfoWithSuccess: (void(^)(NSArray< ThingSmartFileDownloadModel * > *upgradeFileList))  success
failure: (void(^)(NSError *_Nullable error))  failure 

获取文件信息

Parameters
success成功回调
failure失败回调

◆ getFileDownloadRateWithSuccess:failure: [1/2]

- (void) getFileDownloadRateWithSuccess: (void(^)(ThingSmartFileDownloadRateModel *rateModel))  success
failure: (void(^)(NSError *_Nullable error))  failure 

获取文件下载进度

Parameters
success成功回调
failure失败回调

◆ getFileDownloadRateWithSuccess:failure: [2/2]

- (void) getFileDownloadRateWithSuccess: (void(^)(ThingSmartFileDownloadRateModel *rateModel))  success
failure: (void(^)(NSError *_Nullable error))  failure 

获取文件下载进度

Parameters
success成功回调
failure失败回调

◆ getHistoryCleanRecordList:offset:limit:startTime:endTime:complete: [1/2]

- (void) getHistoryCleanRecordList: (NSString *)  devId
offset: (NSInteger)  offset
limit: (NSInteger)  limit
startTime: (long long)  startTime
endTime: (long long)  endTime
complete: (void(^)(NSArray< ThingSmartSweeperRecordList * > *list, NSError *error))  complete 

历史清扫记录列表

Parameters
devId设备 ID
offset分页偏移量
limit分页大小
startTime开始时间
endTime结束时间

◆ getHistoryCleanRecordList:offset:limit:startTime:endTime:complete: [2/2]

- (void) getHistoryCleanRecordList: (NSString *)  devId
offset: (NSInteger)  offset
limit: (NSInteger)  limit
startTime: (long long)  startTime
endTime: (long long)  endTime
complete: (void(^)(NSArray< ThingSmartSweeperRecordList * > *list, NSError *error))  complete 

历史清扫记录列表

Parameters
devId设备 ID
offset分页偏移量
limit分页大小
startTime开始时间
endTime结束时间

◆ getSweeperCurrentPathWithSuccess:failure: [1/2]

- (void) getSweeperCurrentPathWithSuccess: (void(^)(NSString *bucket, NSDictionary< ThingSmartSweeperCurrentPathKey, NSString * > *paths))  success
failure: (void(^)(NSError *_Nullable error))  failure 

获取实时的地图文件信息

Parameters
successSuccess block
failureFailure block

◆ getSweeperCurrentPathWithSuccess:failure: [2/2]

- (void) getSweeperCurrentPathWithSuccess: (void(^)(NSString *bucket, NSDictionary< ThingSmartSweeperCurrentPathKey, NSString * > *paths))  success
failure: (void(^)(NSError *_Nullable error))  failure 

获取实时的地图文件信息

Parameters
successSuccess block
failureFailure block

◆ getSweeperDataWithBucket:path:success:failure: [1/2]

- (void) getSweeperDataWithBucket: (NSString *)  bucket
path: (NSString *)  path
success: (void(^)(NSData *data))  success
failure: (void(^)(NSError *_Nullable error))  failure 

获取数据内容 OSS 错误码查询: https://help.aliyun.com/document_detail/32005.html?spm=a2c4g.11186623.6.1328.609b28126VcNPW

Parameters
bucket文件存储的bucket
path文件路径
success成功返回二进制地图数据
failureFailure block

◆ getSweeperDataWithBucket:path:success:failure: [2/2]

- (void) getSweeperDataWithBucket: (NSString *)  bucket
path: (NSString *)  path
success: (void(^)(NSData *data))  success
failure: (void(^)(NSError *_Nullable error))  failure 

获取数据内容 OSS 错误码查询: https://help.aliyun.com/document_detail/32005.html?spm=a2c4g.11186623.6.1328.609b28126VcNPW

Parameters
bucket文件存储的bucket
path文件路径
success成功返回二进制地图数据
failureFailure block

◆ getSweeperHistoryDataWithLimit:offset:startTime:endTime:success:failure: [1/2]

- (void) getSweeperHistoryDataWithLimit: (NSUInteger)  limit
offset: (NSUInteger)  offset
startTime: (long)  startTime
endTime: (long)  endTime
success: (void(^)(NSArray< ThingSmartSweeperHistoryModel * > *datas, NSUInteger totalCount))  success
failure: (void(^)(NSError *_Nullable error))  failure 

获取扫地机历史记录

Parameters
limit一次获取数据的数量(建议最大不要超过100)
offset获取数据的偏移量(用于分页)
startTime起始时间戳
endTime结束时间戳
successSuccess block
failureFailure block

◆ getSweeperHistoryDataWithLimit:offset:startTime:endTime:success:failure: [2/2]

- (void) getSweeperHistoryDataWithLimit: (NSUInteger)  limit
offset: (NSUInteger)  offset
startTime: (long)  startTime
endTime: (long)  endTime
success: (void(^)(NSArray< ThingSmartSweeperHistoryModel * > *datas, NSUInteger totalCount))  success
failure: (void(^)(NSError *_Nullable error))  failure 

获取扫地机历史记录

Parameters
limit一次获取数据的数量(建议最大不要超过100)
offset获取数据的偏移量(用于分页)
startTime起始时间戳
endTime结束时间戳
successSuccess block
failureFailure block

◆ getSweeperHistoryDataWithLimit:offset:success:failure: [1/2]

- (void) getSweeperHistoryDataWithLimit: (NSUInteger)  limit
offset: (NSUInteger)  offset
success: (void(^)(NSArray< ThingSmartSweeperHistoryModel * > *datas, NSUInteger totalCount))  success
failure: (void(^)(NSError *_Nullable error))  failure 

获取扫地机历史记录

Parameters
limit一次获取数据的数量(建议最大不要超过100)
offset获取数据的偏移量(用于分页)
successSuccess block
failureFailure block

◆ getSweeperHistoryDataWithLimit:offset:success:failure: [2/2]

- (void) getSweeperHistoryDataWithLimit: (NSUInteger)  limit
offset: (NSUInteger)  offset
success: (void(^)(NSArray< ThingSmartSweeperHistoryModel * > *datas, NSUInteger totalCount))  success
failure: (void(^)(NSError *_Nullable error))  failure 

获取扫地机历史记录

Parameters
limit一次获取数据的数量(建议最大不要超过100)
offset获取数据的偏移量(用于分页)
successSuccess block
failureFailure block

◆ getSweeperMultiHistoryDataWithLimit:offset:startTime:endTime:success:failure: [1/2]

- (void) getSweeperMultiHistoryDataWithLimit: (NSUInteger)  limit
offset: (NSUInteger)  offset
startTime: (long)  startTime
endTime: (long)  endTime
success: (void(^)(NSArray< ThingSmartSweeperHistoryModel * > *datas, NSUInteger totalCount))  success
failure: (void(^)(NSError *_Nullable error))  failure 

获取(多地图)扫地机历史记录

Parameters
limit一次获取数据的数量(建议最大不要超过100)
offset获取数据的偏移量(用于分页)
startTime起始时间戳
endTime结束时间戳
success成功结果回调
failure失败结果回调

◆ getSweeperMultiHistoryDataWithLimit:offset:startTime:endTime:success:failure: [2/2]

- (void) getSweeperMultiHistoryDataWithLimit: (NSUInteger)  limit
offset: (NSUInteger)  offset
startTime: (long)  startTime
endTime: (long)  endTime
success: (void(^)(NSArray< ThingSmartSweeperHistoryModel * > *datas, NSUInteger totalCount))  success
failure: (void(^)(NSError *_Nullable error))  failure 

获取(多地图)扫地机历史记录

Parameters
limit一次获取数据的数量(建议最大不要超过100)
offset获取数据的偏移量(用于分页)
startTime起始时间戳
endTime结束时间戳
success成功结果回调
failure失败结果回调

◆ getSweeperMultiHistoryDataWithLimit:offset:success:failure: [1/2]

- (void) getSweeperMultiHistoryDataWithLimit: (NSUInteger)  limit
offset: (NSUInteger)  offset
success: (void(^)(NSArray< ThingSmartSweeperHistoryModel * > *datas, NSUInteger totalCount))  success
failure: (void(^)(NSError *_Nullable error))  failure 

获取(多地图)扫地机历史记录

Parameters
limit一次获取数据的数量(建议最大不要超过100)
offset获取数据的偏移量(用于分页)
success成功结果回调
failure失败结果回调

◆ getSweeperMultiHistoryDataWithLimit:offset:success:failure: [2/2]

- (void) getSweeperMultiHistoryDataWithLimit: (NSUInteger)  limit
offset: (NSUInteger)  offset
success: (void(^)(NSArray< ThingSmartSweeperHistoryModel * > *datas, NSUInteger totalCount))  success
failure: (void(^)(NSError *_Nullable error))  failure 

获取(多地图)扫地机历史记录

Parameters
limit一次获取数据的数量(建议最大不要超过100)
offset获取数据的偏移量(用于分页)
success成功结果回调
failure失败结果回调

◆ initCloudConfigWithSuccess:failure: [1/2]

- (void) initCloudConfigWithSuccess: (void(^)(NSString *bucket))  success
failure: (void(^)(NSError *_Nullable error))  failure 

初始化云配置

Parameters
success成功返回文件存储的bucket信息(用来获取文件的存储url)
failureFailure block

◆ initCloudConfigWithSuccess:failure: [2/2]

- (void) initCloudConfigWithSuccess: (void(^)(NSString *bucket))  success
failure: (void(^)(NSError *_Nullable error))  failure 

初始化云配置

Parameters
success成功返回文件存储的bucket信息(用来获取文件的存储url)
failureFailure block

◆ onDestroyP2P [1/2]

- (void) onDestroyP2P

Destroy P2P SDK and cancel all task.

◆ onDestroyP2P [2/2]

- (void) onDestroyP2P

Destroy P2P SDK and cancel all task.

◆ P2PActiveCheck [1/2]

- (BOOL) P2PActiveCheck

Check p2p session is active.

◆ P2PActiveCheck [2/2]

- (BOOL) P2PActiveCheck

Check p2p session is active.

◆ queryLatestCleanRecord:start:size:complete: [1/2]

- (void) queryLatestCleanRecord: (NSString *)  devId
start: (NSString *)  start
size: (NSInteger)  size
complete: (void(^)(ThingSmartSweeperRecordDetail *model, NSError *error))  complete 

流服务V1.0 查询最新一次清扫记录

Parameters
devId设备 ID
start开始位置。第一次传空,之后取下一页时填上一页返回值里的 startRow 值
size查询数据的大小,固定参数为 500

◆ queryLatestCleanRecord:start:size:complete: [2/2]

- (void) queryLatestCleanRecord: (NSString *)  devId
start: (NSString *)  start
size: (NSInteger)  size
complete: (void(^)(ThingSmartSweeperRecordDetail *model, NSError *error))  complete 

流服务V1.0 查询最新一次清扫记录

Parameters
devId设备 ID
start开始位置。第一次传空,之后取下一页时填上一页返回值里的 startRow 值
size查询数据的大小,固定参数为 500

◆ queryLatestCleanRecordV2:start:size:complete: [1/2]

- (void) queryLatestCleanRecordV2: (NSString *)  devId
start: (NSString *)  start
size: (NSInteger)  size
complete: (void(^)(ThingSmartSweeperRecordDetail *model, NSError *error))  complete 

流服务V2.0 查询最新一次清扫记录

Parameters
devId设备 ID
start开始位置。第一次传空,之后取下一页时填上一页返回值里的 startRow 值
size查询数据的大小,固定参数为 500

◆ queryLatestCleanRecordV2:start:size:complete: [2/2]

- (void) queryLatestCleanRecordV2: (NSString *)  devId
start: (NSString *)  start
size: (NSInteger)  size
complete: (void(^)(ThingSmartSweeperRecordDetail *model, NSError *error))  complete 

流服务V2.0 查询最新一次清扫记录

Parameters
devId设备 ID
start开始位置。第一次传空,之后取下一页时填上一页返回值里的 startRow 值
size查询数据的大小,固定参数为 500

◆ removeAllHistoryDataWithSuccess:failure: [1/2]

- (void) removeAllHistoryDataWithSuccess: (void(^)(void))  success
failure: ("This method is deprecated on 3.0.0")  __deprecated_msg 

删除当前扫地机所有历史记录

Parameters
successSuccess block
failureFailure block

◆ removeAllHistoryDataWithSuccess:failure: [2/2]

- (void) removeAllHistoryDataWithSuccess: (void(^)(void))  success
failure: ("This method is deprecated on 3.0.0")  __deprecated_msg 

删除当前扫地机所有历史记录

Parameters
successSuccess block
failureFailure block

◆ removeAllMultiHistoryDataWithSuccess:failure: [1/2]

- (void) removeAllMultiHistoryDataWithSuccess: (void(^)(void))  success
failure: ("This method is deprecated on 3.0.0")  __deprecated_msg 

删除当前(多地图)扫地机所有历史记录

Parameters
success成功结果回调
failure失败结果回调

◆ removeAllMultiHistoryDataWithSuccess:failure: [2/2]

- (void) removeAllMultiHistoryDataWithSuccess: (void(^)(void))  success
failure: ("This method is deprecated on 3.0.0")  __deprecated_msg 

删除当前(多地图)扫地机所有历史记录

Parameters
success成功结果回调
failure失败结果回调

◆ removeSweeperHistoryDataWithFileIds:success:failure: [1/2]

- (void) removeSweeperHistoryDataWithFileIds: (NSArray< NSString * > *)  fileIds
success: (void(^)(void))  success
failure: (void(^)(NSError *_Nullable error))  failure 

删除扫地机历史记录

Parameters
fileIds文件 id 数组
successSuccess block
failureFailure block

◆ removeSweeperHistoryDataWithFileIds:success:failure: [2/2]

- (void) removeSweeperHistoryDataWithFileIds: (NSArray< NSString * > *)  fileIds
success: (void(^)(void))  success
failure: (void(^)(NSError *_Nullable error))  failure 

删除扫地机历史记录

Parameters
fileIds文件 id 数组
successSuccess block
failureFailure block

◆ startObserverSweeperDataByP2P:receiveP2PData:failure: [1/2]

- (void) startObserverSweeperDataByP2P: (ThingSmartSweeperP2PDownloadType)  downloadType
receiveP2PData: (void(^)(NSDictionary *data))  receiveP2PData
failure: (void(^)(NSError *_Nullable error))  failure 

Start observer data from sweeper device.

Parameters
downloadType0:download only once, 1: continuous download when device update.
receiveP2PDatacallback when observer success
failurecallback when connect fail

◆ startObserverSweeperDataByP2P:receiveP2PData:failure: [2/2]

- (void) startObserverSweeperDataByP2P: (ThingSmartSweeperP2PDownloadType)  downloadType
receiveP2PData: (void(^)(NSDictionary *data))  receiveP2PData
failure: (void(^)(NSError *_Nullable error))  failure 

Start observer data from sweeper device.

Parameters
downloadType0:download only once, 1: continuous download when device update.
receiveP2PDatacallback when observer success
failurecallback when connect fail

◆ stopObserverSweeperDataByP2P:failure: [1/2]

- (void) stopObserverSweeperDataByP2P: (void(^)(void))  success
failure: (void(^)(NSError *_Nullable error))  failure 

Stop observer data from sweeper device.

Parameters
successcallback when stop success
failurecallback when stop fail

◆ stopObserverSweeperDataByP2P:failure: [2/2]

- (void) stopObserverSweeperDataByP2P: (void(^)(void))  success
failure: (void(^)(NSError *_Nullable error))  failure 

Stop observer data from sweeper device.

Parameters
successcallback when stop success
failurecallback when stop fail

◆ subscribeDeviceDataTransfer [1/2]

- (void) subscribeDeviceDataTransfer

订阅设备的流数据

◆ subscribeDeviceDataTransfer [2/2]

- (void) subscribeDeviceDataTransfer

订阅设备的流数据

◆ sweeperFileNameUpdateWithFileId:fileName:success:failure: [1/2]

- (void) sweeperFileNameUpdateWithFileId: (NSNumber *)  fileId
fileName: (NSString *)  fileName
success: (void(^)(id result))  success
failure: (void(^)(NSError *_Nullable error))  failure 

Update sweeper file name

Parameters
fileIdmap id
fileNamefile name
successsuccess call back
failurefailure call back

◆ sweeperFileNameUpdateWithFileId:fileName:success:failure: [2/2]

- (void) sweeperFileNameUpdateWithFileId: (NSNumber *)  fileId
fileName: (NSString *)  fileName
success: (void(^)(id result))  success
failure: (void(^)(NSError *_Nullable error))  failure 

Update sweeper file name

Parameters
fileIdmap id
fileNamefile name
successsuccess call back
failurefailure call back

◆ unsubscribeDeviceDataTransfer [1/2]

- (void) unsubscribeDeviceDataTransfer

取消订阅设备的流数据

◆ unsubscribeDeviceDataTransfer [2/2]

- (void) unsubscribeDeviceDataTransfer

取消订阅设备的流数据

◆ updateCloudConfigWithSuccess:failure: [1/2]

- (void) updateCloudConfigWithSuccess: (void(^)(NSString *bucket))  success
failure: (void(^)(NSError *_Nullable error))  failure 

更新云配置

Parameters
success成功返回文件存储的bucket信息
failureFailure block

◆ updateCloudConfigWithSuccess:failure: [2/2]

- (void) updateCloudConfigWithSuccess: (void(^)(NSString *bucket))  success
failure: (void(^)(NSError *_Nullable error))  failure 

更新云配置

Parameters
success成功返回文件存储的bucket信息
failureFailure block

Property Documentation

◆ delegate

- (id< ThingSmartSweeperDeviceDelegate >) delegate
readwritenonatomicweak

Definition at line 89 of file ThingSmartSweeperDevice.h.

◆ shouldAutoDownloadData

- (BOOL) shouldAutoDownloadData
readwritenonatomicassign

Download laser sweeper binary data from mapPath URL. Default false. 是否自动下载地图文件数据

Definition at line 95 of file ThingSmartSweeperDevice.h.


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