![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
The basic operation class of ThingSmartDevice contains the model of basic information, including the device, DPs to send, update device information, and other common API operations. More...
#import <ThingSmartDevice.h>
Properties | |
NSString * | devId |
Returns the device id. More... | |
ThingSmartDeviceModel * | deviceModel |
Returns the model of basic device information. More... | |
id< ThingSmartDeviceDelegate > | delegate |
The basic operation class of ThingSmartDevice contains the model of basic information, including the device, DPs to send, update device information, and other common API operations.
All types of devices can be controlled after you initialize an instance of this class if the function is supported.
Definition at line 196 of file ThingSmartDevice.h.
- ("This method is deprecated") __deprecated_msg |
Cancels the firmware update request.
- ("This method is deprecated") __deprecated_msg |
Cancels the firmware update request.
- ("This method is deprecated") __deprecated_msg |
Cancels the firmware update request.
- ("This method is deprecated") __deprecated_msg |
Cancels the firmware update request.
- (ThingDoorBellError) answerDoorBellCallWithType: | (ThingSmartDoorBellType) | type | |
messageId: | (NSString *) | messageId | |
Provided by category ThingSmartDevice(doorbell).
- (ThingDoorBellError) answerDoorBellCallWithType: | (ThingSmartDoorBellType) | type | |
messageId: | (NSString *) | messageId | |
Provided by category ThingSmartDevice(doorbell).
- (void) cancelFirmwareUpgrade: | (ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Cancel firmware upgrade Notice: it only support for the task status equal to ThingSmartDeviceUpgradeStatusWaitingExectue
Provided by category ThingSmartDevice(OTA).
- (void) cancelFirmwareUpgrade: | (ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Cancel firmware upgrade Notice: it only support for the task status equal to ThingSmartDeviceUpgradeStatusWaitingExectue
Provided by category ThingSmartDevice(OTA).
- (void) cancelFirmwareUpgrade: | (ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Cancel firmware upgrade Notice: it only support for the task status equal to ThingSmartDeviceUpgradeStatusWaitingExectue
Provided by category ThingSmartDevice(OTA).
- (void) cancelFirmwareUpgrade: | (ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Cancel firmware upgrade Notice: it only support for the task status equal to ThingSmartDeviceUpgradeStatusWaitingExectue
Provided by category ThingSmartDevice(OTA).
- (void) cancelUpgradeFirmware: | (NSInteger) | type | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("This method is) | deprecated | |
(Use - instead") | __deprecated_msg[ThingSmartDevice cancelFirmwareUpgrade:failure:] | ||
Cancels the firmware updates. Only the update tasks that have not been published can be canceled.
type | The device type of ThingSmartFirmwareUpgradeModel . |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) cancelUpgradeFirmware: | (NSInteger) | type | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("This method is) | deprecated | |
(Use - instead") | __deprecated_msg[ThingSmartDevice cancelFirmwareUpgrade:failure:] | ||
Cancels the firmware updates. Only the update tasks that have not been published can be canceled.
type | The device type of ThingSmartFirmwareUpgradeModel . |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) cancelUpgradeFirmware: | (NSInteger) | type | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("This method is) | deprecated | |
(Use - instead") | __deprecated_msg[ThingSmartDevice cancelFirmwareUpgrade:failure:] | ||
Cancels the firmware updates. Only the update tasks that have not been published can be canceled.
type | The device type of ThingSmartFirmwareUpgradeModel . |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) cancelUpgradeFirmware: | (NSInteger) | type | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("This method is) | deprecated | |
(Use - instead") | __deprecated_msg[ThingSmartDevice cancelFirmwareUpgrade:failure:] | ||
Cancels the firmware updates. Only the update tasks that have not been published can be canceled.
type | The device type of ThingSmartFirmwareUpgradeModel . |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) checkFirmwareUpgrade: | (void(^)(NSArray< ThingSmartFirmwareUpgradeModel * > *firmwares)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns firmware upgrade information. ( for general device.) Contains current firmwares and upgradeable firmwares. Notice: equal to checkFirmwareUpgradeWithExtraInfo:nil success:success failure:failure
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OTA).
- (void) checkFirmwareUpgrade: | (void(^)(NSArray< ThingSmartFirmwareUpgradeModel * > *firmwares)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns firmware upgrade information. ( for general device.) Contains current firmwares and upgradeable firmwares. Notice: equal to checkFirmwareUpgradeWithExtraInfo:nil success:success failure:failure
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OTA).
- (void) checkFirmwareUpgrade: | (void(^)(NSArray< ThingSmartFirmwareUpgradeModel * > *firmwares)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns firmware upgrade information. ( for general device.) Contains current firmwares and upgradeable firmwares. Notice: equal to checkFirmwareUpgradeWithExtraInfo:nil success:success failure:failure
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OTA).
- (void) checkFirmwareUpgrade: | (void(^)(NSArray< ThingSmartFirmwareUpgradeModel * > *firmwares)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns firmware upgrade information. ( for general device.) Contains current firmwares and upgradeable firmwares. Notice: equal to checkFirmwareUpgradeWithExtraInfo:nil success:success failure:failure
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OTA).
- (void) checkFirmwareUpgradeWithExtraInfo: | (nullable NSDictionary *) | extraInfo | |
success: | (void(^)(NSArray< ThingSmartFirmwareUpgradeModel * > *firmwares)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns firmware upgrade information. ( for general device and some special device. ) Contains current firmwares and upgradeable firmwares. Exta info's ussage:
-getDeviceLocalFirmwareInfo:failure:
to get and cached the info type
& currentVersion
. extraInfo | Some special device need extra info to check firmwares. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OTA).
- (void) checkFirmwareUpgradeWithExtraInfo: | (nullable NSDictionary *) | extraInfo | |
success: | (void(^)(NSArray< ThingSmartFirmwareUpgradeModel * > *firmwares)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns firmware upgrade information. ( for general device and some special device. ) Contains current firmwares and upgradeable firmwares. Exta info's ussage:
-getDeviceLocalFirmwareInfo:failure:
to get and cached the info type
& currentVersion
. extraInfo | Some special device need extra info to check firmwares. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OTA).
- (void) checkFirmwareUpgradeWithExtraInfo: | (nullable NSDictionary *) | extraInfo | |
success: | (void(^)(NSArray< ThingSmartFirmwareUpgradeModel * > *firmwares)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns firmware upgrade information. ( for general device and some special device. ) Contains current firmwares and upgradeable firmwares. Exta info's ussage:
-getDeviceLocalFirmwareInfo:failure:
to get and cached the info type
& currentVersion
. extraInfo | Some special device need extra info to check firmwares. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OTA).
- (void) checkFirmwareUpgradeWithExtraInfo: | (nullable NSDictionary *) | extraInfo | |
success: | (void(^)(NSArray< ThingSmartFirmwareUpgradeModel * > *firmwares)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns firmware upgrade information. ( for general device and some special device. ) Contains current firmwares and upgradeable firmwares. Exta info's ussage:
-getDeviceLocalFirmwareInfo:failure:
to get and cached the info type
& currentVersion
. extraInfo | Some special device need extra info to check firmwares. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OTA).
- (void) confirmWarningUpgradeTask: | (BOOL) | isContinue |
Confirm continue or not when a upgrading task callback the warning error ThingOTAErrorCodeSignalStrengthNotSatisfy
.
isContinue | continue or not. |
Provided by category ThingSmartDevice(OTA).
- (void) confirmWarningUpgradeTask: | (BOOL) | isContinue |
Confirm continue or not when a upgrading task callback the warning error ThingOTAErrorCodeSignalStrengthNotSatisfy
.
isContinue | continue or not. |
Provided by category ThingSmartDevice(OTA).
- (void) confirmWarningUpgradeTask: | (BOOL) | isContinue |
Confirm continue or not when a upgrading task callback the warning error ThingOTAErrorCodeSignalStrengthNotSatisfy
.
isContinue | continue or not. |
Provided by category ThingSmartDevice(OTA).
- (void) confirmWarningUpgradeTask: | (BOOL) | isContinue |
Confirm continue or not when a upgrading task callback the warning error ThingOTAErrorCodeSignalStrengthNotSatisfy
.
isContinue | continue or not. |
Provided by category ThingSmartDevice(OTA).
- (void) connectDeviceWithParams: | (ThingDeviceConnectParams *) | connectParams | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
connect device with params
success | success |
failure | failure |
Provided by category ThingSmartDevice(Connect).
- (void) connectDeviceWithParams: | (ThingDeviceConnectParams *) | connectParams | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
connect device with params
success | success |
failure | failure |
Provided by category ThingSmartDevice(Connect).
- (void) connectDeviceWithParams: | (ThingDeviceConnectParams *) | connectParams | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
connect device with params
success | success |
failure | failure |
Provided by category ThingSmartDevice(Connect).
- (void) connectDeviceWithParams: | (ThingDeviceConnectParams *) | connectParams | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
connect device with params
success | success |
failure | failure |
Provided by category ThingSmartDevice(Connect).
+ (nullable instancetype) deviceWithDeviceId: | (NSString *) | devId |
Returns the ThingSmartDevice instance. If the current user does not have this device, a value of nil is returned.
devId | The device ID. |
+ (nullable instancetype) deviceWithDeviceId: | (NSString *) | devId |
Returns the ThingSmartDevice instance. If the current user does not have this device, a value of nil is returned.
devId | The device ID. |
+ (nullable instancetype) deviceWithDeviceId: | (NSString *) | devId |
Returns the ThingSmartDevice instance. If the current user does not have this device, a value of nil is returned.
devId | The device ID. |
+ (nullable instancetype) deviceWithDeviceId: | (NSString *) | devId |
Returns the ThingSmartDevice instance. If the current user does not have this device, a value of nil is returned.
devId | The device ID. |
- (void) disconnect: | (ThingDeviceDisconnectParams *) | disconnectParams |
Disconnect the device. Note If the sigmesh device is used, the sigmesh network is disconnected
disconnectParams | disconnectParams |
Provided by category ThingSmartDevice(Connect).
- (void) disconnect: | (ThingDeviceDisconnectParams *) | disconnectParams |
Disconnect the device. Note If the sigmesh device is used, the sigmesh network is disconnected
disconnectParams | disconnectParams |
Provided by category ThingSmartDevice(Connect).
- (void) disconnect: | (ThingDeviceDisconnectParams *) | disconnectParams |
Disconnect the device. Note If the sigmesh device is used, the sigmesh network is disconnected
disconnectParams | disconnectParams |
Provided by category ThingSmartDevice(Connect).
- (void) disconnect: | (ThingDeviceDisconnectParams *) | disconnectParams |
Disconnect the device. Note If the sigmesh device is used, the sigmesh network is disconnected
disconnectParams | disconnectParams |
Provided by category ThingSmartDevice(Connect).
- (void) getAutoUpgradeSwitchInfoWithSuccess: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns the switch value for the automatic device OTA updates.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) getAutoUpgradeSwitchInfoWithSuccess: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns the switch value for the automatic device OTA updates.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) getAutoUpgradeSwitchInfoWithSuccess: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns the switch value for the automatic device OTA updates.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) getAutoUpgradeSwitchInfoWithSuccess: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns the switch value for the automatic device OTA updates.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) getDeviceLocalFirmwareInfo: | (void(^)(NSArray< ThingSmartFirmwareUpgradeModel * > *infos)) | success | |
failure: | (ThingFailureError) | failure | |
Fetch the device's local firmware version info. ( now only used for the AP Directly device ) Notice:
model.type
and model.currentVersion
properties. success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OTA).
- (void) getDeviceLocalFirmwareInfo: | (void(^)(NSArray< ThingSmartFirmwareUpgradeModel * > *infos)) | success | |
failure: | (ThingFailureError) | failure | |
Fetch the device's local firmware version info. ( now only used for the AP Directly device ) Notice:
model.type
and model.currentVersion
properties. success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OTA).
- (void) getDeviceLocalFirmwareInfo: | (void(^)(NSArray< ThingSmartFirmwareUpgradeModel * > *infos)) | success | |
failure: | (ThingFailureError) | failure | |
Fetch the device's local firmware version info. ( now only used for the AP Directly device ) Notice:
model.type
and model.currentVersion
properties. success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OTA).
- (void) getDeviceLocalFirmwareInfo: | (void(^)(NSArray< ThingSmartFirmwareUpgradeModel * > *infos)) | success | |
failure: | (ThingFailureError) | failure | |
Fetch the device's local firmware version info. ( now only used for the AP Directly device ) Notice:
model.type
and model.currentVersion
properties. success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OTA).
- (void) getDevPropertyWithSuccess: | (ThingSuccessDict) | success | |
failure: | (nullable ThingFailureError) | failure | |
Manages the device custom data, such as recording and storing of custom data information.
success | Called when the task is finished. The device property is returned. |
failure | Called when the task is interrupted by an error. |
- (void) getDevPropertyWithSuccess: | (ThingSuccessDict) | success | |
failure: | (nullable ThingFailureError) | failure | |
Manages the device custom data, such as recording and storing of custom data information.
success | Called when the task is finished. The device property is returned. |
failure | Called when the task is interrupted by an error. |
- (void) getDevPropertyWithSuccess: | (ThingSuccessDict) | success | |
failure: | (nullable ThingFailureError) | failure | |
Manages the device custom data, such as recording and storing of custom data information.
success | Called when the task is finished. The device property is returned. |
failure | Called when the task is interrupted by an error. |
- (void) getDevPropertyWithSuccess: | (ThingSuccessDict) | success | |
failure: | (nullable ThingFailureError) | failure | |
Manages the device custom data, such as recording and storing of custom data information.
success | Called when the task is finished. The device property is returned. |
failure | Called when the task is interrupted by an error. |
- (void) getFirmwareUpgradeInfo: | (nullable void(^)(NSArray< ThingSmartFirmwareUpgradeModel * > *upgradeModelList)) | success | |
failure: | ("This method is) | deprecated | |
(Use - instead") | __deprecated_msg[ThingSmartDevice checkFirmwareUpgrade:failure:] | ||
Returns firmware update information.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) getFirmwareUpgradeInfo: | (nullable void(^)(NSArray< ThingSmartFirmwareUpgradeModel * > *upgradeModelList)) | success | |
failure: | ("This method is) | deprecated | |
(Use - instead") | __deprecated_msg[ThingSmartDevice checkFirmwareUpgrade:failure:] | ||
Returns firmware update information.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) getFirmwareUpgradeInfo: | (nullable void(^)(NSArray< ThingSmartFirmwareUpgradeModel * > *upgradeModelList)) | success | |
failure: | ("This method is) | deprecated | |
(Use - instead") | __deprecated_msg[ThingSmartDevice checkFirmwareUpgrade:failure:] | ||
Returns firmware update information.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) getFirmwareUpgradeInfo: | (nullable void(^)(NSArray< ThingSmartFirmwareUpgradeModel * > *upgradeModelList)) | success | |
failure: | ("This method is) | deprecated | |
(Use - instead") | __deprecated_msg[ThingSmartDevice checkFirmwareUpgrade:failure:] | ||
Returns firmware update information.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) getFirmwareUpgradingStatus: | (void(^)(ThingSmartFirmwareUpgradeStatusModel *status)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Fetch the firmware upgrading task's status or progress. ( progress maybe 0 ) Notice: it only support for the task status equal to ThingSmartDeviceUpgradeStatusUpgrading
or ThingSmartDeviceUpgradeStatusWaitingExectue
success | Called when the task's status/progress can provide |
failure | Called when the task's status/progress can't provide |
Provided by category ThingSmartDevice(OTA).
- (void) getFirmwareUpgradingStatus: | (void(^)(ThingSmartFirmwareUpgradeStatusModel *status)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Fetch the firmware upgrading task's status or progress. ( progress maybe 0 ) Notice: it only support for the task status equal to ThingSmartDeviceUpgradeStatusUpgrading
or ThingSmartDeviceUpgradeStatusWaitingExectue
success | Called when the task's status/progress can provide |
failure | Called when the task's status/progress can't provide |
Provided by category ThingSmartDevice(OTA).
- (void) getFirmwareUpgradingStatus: | (void(^)(ThingSmartFirmwareUpgradeStatusModel *status)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Fetch the firmware upgrading task's status or progress. ( progress maybe 0 ) Notice: it only support for the task status equal to ThingSmartDeviceUpgradeStatusUpgrading
or ThingSmartDeviceUpgradeStatusWaitingExectue
success | Called when the task's status/progress can provide |
failure | Called when the task's status/progress can't provide |
Provided by category ThingSmartDevice(OTA).
- (void) getFirmwareUpgradingStatus: | (void(^)(ThingSmartFirmwareUpgradeStatusModel *status)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Fetch the firmware upgrading task's status or progress. ( progress maybe 0 ) Notice: it only support for the task status equal to ThingSmartDeviceUpgradeStatusUpgrading
or ThingSmartDeviceUpgradeStatusWaitingExectue
success | Called when the task's status/progress can provide |
failure | Called when the task's status/progress can't provide |
Provided by category ThingSmartDevice(OTA).
- (void) getOfflineReminderStatusWithSuccess: | (nullable ThingSuccessBOOL) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns the device offline notification status.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OfflineReminder).
- (void) getOfflineReminderStatusWithSuccess: | (nullable ThingSuccessBOOL) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns the device offline notification status.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OfflineReminder).
- (void) getOfflineReminderStatusWithSuccess: | (nullable ThingSuccessBOOL) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns the device offline notification status.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OfflineReminder).
- (void) getOfflineReminderStatusWithSuccess: | (nullable ThingSuccessBOOL) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns the device offline notification status.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OfflineReminder).
- (void) getOfflineReminderSupportStatusWithSuccess: | (nullable ThingSuccessBOOL) | success | |
failure: | (nullable ThingFailureError) | failure | |
Checks whether the device supports offline alerts.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OfflineReminder).
- (void) getOfflineReminderSupportStatusWithSuccess: | (nullable ThingSuccessBOOL) | success | |
failure: | (nullable ThingFailureError) | failure | |
Checks whether the device supports offline alerts.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OfflineReminder).
- (void) getOfflineReminderSupportStatusWithSuccess: | (nullable ThingSuccessBOOL) | success | |
failure: | (nullable ThingFailureError) | failure | |
Checks whether the device supports offline alerts.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OfflineReminder).
- (void) getOfflineReminderSupportStatusWithSuccess: | (nullable ThingSuccessBOOL) | success | |
failure: | (nullable ThingFailureError) | failure | |
Checks whether the device supports offline alerts.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OfflineReminder).
- (void) getShareInfoWithSuccess: | (void(^)(ThingSmartReceivedShareUserModel *model)) | success | |
failure: | (ThingFailureError) | failure | |
Get users for device sharing.
success | Called when the task finishes successfully. ThingSmartReceivedShareUserModel will be returned. |
failure | If error occurred while adding the task, this block will be called. |
Provided by category ThingSmartDevice(ShareInfo).
- (void) getShareInfoWithSuccess: | (void(^)(ThingSmartReceivedShareUserModel *model)) | success | |
failure: | (ThingFailureError) | failure | |
Get users for device sharing.
success | Called when the task finishes successfully. ThingSmartReceivedShareUserModel will be returned. |
failure | If error occurred while adding the task, this block will be called. |
Provided by category ThingSmartDevice(ShareInfo).
- (void) getShareInfoWithSuccess: | (void(^)(ThingSmartReceivedShareUserModel *model)) | success | |
failure: | (ThingFailureError) | failure | |
Get users for device sharing.
success | Called when the task finishes successfully. ThingSmartReceivedShareUserModel will be returned. |
failure | If error occurred while adding the task, this block will be called. |
Provided by category ThingSmartDevice(ShareInfo).
- (void) getShareInfoWithSuccess: | (void(^)(ThingSmartReceivedShareUserModel *model)) | success | |
failure: | (ThingFailureError) | failure | |
Get users for device sharing.
success | Called when the task finishes successfully. ThingSmartReceivedShareUserModel will be returned. |
failure | If error occurred while adding the task, this block will be called. |
Provided by category ThingSmartDevice(ShareInfo).
- (void) getSubDeviceListFromCloudWithSuccess: | (nullable void(^)(NSArray< ThingSmartDeviceModel * > *subDeviceList)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns a sub-device list of the current gateway.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) getSubDeviceListFromCloudWithSuccess: | (nullable void(^)(NSArray< ThingSmartDeviceModel * > *subDeviceList)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns a sub-device list of the current gateway.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) getSubDeviceListFromCloudWithSuccess: | (nullable void(^)(NSArray< ThingSmartDeviceModel * > *subDeviceList)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns a sub-device list of the current gateway.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) getSubDeviceListFromCloudWithSuccess: | (nullable void(^)(NSArray< ThingSmartDeviceModel * > *subDeviceList)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns a sub-device list of the current gateway.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
+ (void) getThingModelWithProductId: | (NSString *) | pid | |
productVersion: | (NSString *) | productVersion | |
success: | (nullable void(^)(ThingSmartThingModel *_Nullable thingModel)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Get thing model from cloud and update cache.
pid | productId |
productVersion | product version |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
+ (void) getThingModelWithProductId: | (NSString *) | pid | |
productVersion: | (NSString *) | productVersion | |
success: | (nullable void(^)(ThingSmartThingModel *_Nullable thingModel)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Get thing model from cloud and update cache.
pid | productId |
productVersion | product version |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
+ (void) getThingModelWithProductId: | (NSString *) | pid | |
productVersion: | (NSString *) | productVersion | |
success: | (nullable void(^)(ThingSmartThingModel *_Nullable thingModel)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Get thing model from cloud and update cache.
pid | productId |
productVersion | product version |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
+ (void) getThingModelWithProductId: | (NSString *) | pid | |
productVersion: | (NSString *) | productVersion | |
success: | (nullable void(^)(ThingSmartThingModel *_Nullable thingModel)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Get thing model from cloud and update cache.
pid | productId |
productVersion | product version |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) getThingModelWithSuccess: | (nullable void(^)(ThingSmartThingModel *_Nullable thingModel)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Get thing model from cloud and update cache.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) getThingModelWithSuccess: | (nullable void(^)(ThingSmartThingModel *_Nullable thingModel)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Get thing model from cloud and update cache.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) getThingModelWithSuccess: | (nullable void(^)(ThingSmartThingModel *_Nullable thingModel)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Get thing model from cloud and update cache.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) getThingModelWithSuccess: | (nullable void(^)(ThingSmartThingModel *_Nullable thingModel)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Get thing model from cloud and update cache.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) handleRemoteControlGroup: | (ThingSmartRemoteControlAuthParams *) | remoteControlModel | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Provided by category ThingSmartDevice(FittingDevice).
- (void) handleRemoteControlGroup: | (ThingSmartRemoteControlAuthParams *) | remoteControlModel | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Provided by category ThingSmartDevice(FittingDevice).
- (void) handleRemoteControlGroup: | (ThingSmartRemoteControlAuthParams *) | remoteControlModel | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Provided by category ThingSmartDevice(FittingDevice).
- (void) handleRemoteControlGroup: | (ThingSmartRemoteControlAuthParams *) | remoteControlModel | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Provided by category ThingSmartDevice(FittingDevice).
- (ThingDoorBellError) hangupDoorBellCallWithType: | (ThingSmartDoorBellType) | type | |
messageId: | (NSString *) | messageId | |
Provided by category ThingSmartDevice(doorbell).
- (ThingDoorBellError) hangupDoorBellCallWithType: | (ThingSmartDoorBellType) | type | |
messageId: | (NSString *) | messageId | |
Provided by category ThingSmartDevice(doorbell).
- (void) infraredPublishDps: | (NSString *) | subDevId | |
actionDps: | (NSDictionary *) | actionDps | |
reportDps: | (NSDictionary *) | reportDps | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Suitable infrared control device publish dps. When publish success, will update dps to cloud and local manually.
**Note: Only suitable for infrared device. **
subDevId | The sub device id. |
actionDps | The action dps. |
reportDps | The report dps. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) infraredPublishDps: | (NSString *) | subDevId | |
actionDps: | (NSDictionary *) | actionDps | |
reportDps: | (NSDictionary *) | reportDps | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Suitable infrared control device publish dps. When publish success, will update dps to cloud and local manually.
**Note: Only suitable for infrared device. **
subDevId | The sub device id. |
actionDps | The action dps. |
reportDps | The report dps. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) infraredPublishDps: | (NSString *) | subDevId | |
actionDps: | (NSDictionary *) | actionDps | |
reportDps: | (NSDictionary *) | reportDps | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Suitable infrared control device publish dps. When publish success, will update dps to cloud and local manually.
**Note: Only suitable for infrared device. **
subDevId | The sub device id. |
actionDps | The action dps. |
reportDps | The report dps. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) infraredPublishDps: | (NSString *) | subDevId | |
actionDps: | (NSDictionary *) | actionDps | |
reportDps: | (NSDictionary *) | reportDps | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Suitable infrared control device publish dps. When publish success, will update dps to cloud and local manually.
**Note: Only suitable for infrared device. **
subDevId | The sub device id. |
actionDps | The action dps. |
reportDps | The report dps. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (nullable instancetype) initWithDeviceId: | (NSString *) | NS_DESIGNATED_INITIALIZER |
Returns the ThingSmartDevice instance. If the current user does not have this device, a value of nil is returned.
devId | The device ID. |
Implemented in ThingSmartWiFiLockDevice, and ThingSmartWiFiLockDevice.
- (nullable instancetype) initWithDeviceId: | (NSString *) | NS_DESIGNATED_INITIALIZER |
Returns the ThingSmartDevice instance. If the current user does not have this device, a value of nil is returned.
devId | The device ID. |
Implemented in ThingSmartWiFiLockDevice, and ThingSmartWiFiLockDevice.
- (nullable instancetype) initWithDeviceId: | (NSString *) | NS_DESIGNATED_INITIALIZER |
Returns the ThingSmartDevice instance. If the current user does not have this device, a value of nil is returned.
devId | The device ID. |
Implemented in ThingSmartWiFiLockDevice, and ThingSmartWiFiLockDevice.
- (nullable instancetype) initWithDeviceId: | (NSString *) | NS_DESIGNATED_INITIALIZER |
Returns the ThingSmartDevice instance. If the current user does not have this device, a value of nil is returned.
devId | The device ID. |
Implemented in ThingSmartWiFiLockDevice, and ThingSmartWiFiLockDevice.
- (BOOL) isSupportCheckFirmware |
Determine if the device can check the firmware.
Provided by category ThingSmartDevice(OTA).
- (BOOL) isSupportCheckFirmware |
Determine if the device can check the firmware.
Provided by category ThingSmartDevice(OTA).
- (BOOL) isSupportCheckFirmware |
Determine if the device can check the firmware.
Provided by category ThingSmartDevice(OTA).
- (BOOL) isSupportCheckFirmware |
Determine if the device can check the firmware.
Provided by category ThingSmartDevice(OTA).
- (void) memberCheckFirmwareStatus: | (void(^)(NSArray< ThingSmartMemberCheckFirmwareInfo * > *infos)) | success | |
failure: | (ThingFailureError) | failure | |
Returns firmware information. Notice: This api is for common member role
user use.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OTA).
- (void) memberCheckFirmwareStatus: | (void(^)(NSArray< ThingSmartMemberCheckFirmwareInfo * > *infos)) | success | |
failure: | (ThingFailureError) | failure | |
Returns firmware information. Notice: This api is for common member role
user use.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OTA).
- (void) memberCheckFirmwareStatus: | (void(^)(NSArray< ThingSmartMemberCheckFirmwareInfo * > *infos)) | success | |
failure: | (ThingFailureError) | failure | |
Returns firmware information. Notice: This api is for common member role
user use.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OTA).
- (void) memberCheckFirmwareStatus: | (void(^)(NSArray< ThingSmartMemberCheckFirmwareInfo * > *infos)) | success | |
failure: | (ThingFailureError) | failure | |
Returns firmware information. Notice: This api is for common member role
user use.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OTA).
- (instancetype) NS_UNAVAILABLE |
- (instancetype) NS_UNAVAILABLE |
- (instancetype) NS_UNAVAILABLE |
- (instancetype) NS_UNAVAILABLE |
- (ThingDeviceOnlineMode) onlineMode |
Returns the device online status.
- (ThingDeviceOnlineMode) onlineMode |
Returns the device online status.
- (ThingDeviceOnlineMode) onlineMode |
Returns the device online status.
- (ThingDeviceOnlineMode) onlineMode |
Returns the device online status.
- (void) publishDps: | (NSDictionary *) | dps | |
communicationTypes: | (NSArray *) | communicationTypes | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends DPs.
dps | The dp dictionary. |
communicationTypes | Use communication order to publish dps. (Array element's value reference enum ThingCommunicationType) |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (void) publishDps: | (NSDictionary *) | dps | |
communicationTypes: | (NSArray *) | communicationTypes | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends DPs.
dps | The dp dictionary. |
communicationTypes | Use communication order to publish dps. (Array element's value reference enum ThingCommunicationType) |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (void) publishDps: | (NSDictionary *) | dps | |
communicationTypes: | (NSArray *) | communicationTypes | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends DPs.
dps | The dp dictionary. |
communicationTypes | Use communication order to publish dps. (Array element's value reference enum ThingCommunicationType) |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (void) publishDps: | (NSDictionary *) | dps | |
communicationTypes: | (NSArray *) | communicationTypes | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends DPs.
dps | The dp dictionary. |
communicationTypes | Use communication order to publish dps. (Array element's value reference enum ThingCommunicationType) |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (void) publishDps: | (NSDictionary *) | dps | |
mode: | (ThingDevicePublishMode) | mode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends DPs.
dps | The DP dictionary. |
mode | Publish mode(Lan/Internet/Auto). |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) publishDps: | (NSDictionary *) | dps | |
mode: | (ThingDevicePublishMode) | mode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends DPs.
dps | The DP dictionary. |
mode | Publish mode(Lan/Internet/Auto). |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) publishDps: | (NSDictionary *) | dps | |
mode: | (ThingDevicePublishMode) | mode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends DPs.
dps | The DP dictionary. |
mode | Publish mode(Lan/Internet/Auto). |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) publishDps: | (NSDictionary *) | dps | |
mode: | (ThingDevicePublishMode) | mode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends DPs.
dps | The DP dictionary. |
mode | Publish mode(Lan/Internet/Auto). |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) publishDps: | (NSDictionary *) | dps | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends DPs.
dps | The DP dictionary. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) publishDps: | (NSDictionary *) | dps | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends DPs.
dps | The DP dictionary. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) publishDps: | (NSDictionary *) | dps | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends DPs.
dps | The DP dictionary. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) publishDps: | (NSDictionary *) | dps | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends DPs.
dps | The DP dictionary. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) publishDpWithCommands: | (NSDictionary *) | commands | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends DPs.
commands | The dictionary of DP values. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) publishDpWithCommands: | (NSDictionary *) | commands | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends DPs.
commands | The dictionary of DP values. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) publishDpWithCommands: | (NSDictionary *) | commands | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends DPs.
commands | The dictionary of DP values. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) publishDpWithCommands: | (NSDictionary *) | commands | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends DPs.
commands | The dictionary of DP values. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) publishThingMessageWithType: | (ThingSmartThingMessageType) | thingMessageType | |
payload: | (NSDictionary *) | payload | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Publish the thing message Example: type == property: payload = { "color":"green", "brightness": 50 } type == action: payload = { "actionCode": "testAction", "inputParams": { "inputParam1":"value1", "inputParam2":"value2" } }
thingMessageType | thing message type |
payload | message payload |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) publishThingMessageWithType: | (ThingSmartThingMessageType) | thingMessageType | |
payload: | (NSDictionary *) | payload | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Publish the thing message Example: type == property: payload = { "color":"green", "brightness": 50 } type == action: payload = { "actionCode": "testAction", "inputParams": { "inputParam1":"value1", "inputParam2":"value2" } }
thingMessageType | thing message type |
payload | message payload |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) publishThingMessageWithType: | (ThingSmartThingMessageType) | thingMessageType | |
payload: | (NSDictionary *) | payload | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Publish the thing message Example: type == property: payload = { "color":"green", "brightness": 50 } type == action: payload = { "actionCode": "testAction", "inputParams": { "inputParam1":"value1", "inputParam2":"value2" } }
thingMessageType | thing message type |
payload | message payload |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) publishThingMessageWithType: | (ThingSmartThingMessageType) | thingMessageType | |
payload: | (NSDictionary *) | payload | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Publish the thing message Example: type == property: payload = { "color":"green", "brightness": 50 } type == action: payload = { "actionCode": "testAction", "inputParams": { "inputParam1":"value1", "inputParam2":"value2" } }
thingMessageType | thing message type |
payload | message payload |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) pushDpsWithHttp: | (NSDictionary *) | dps | |
success: | (void(^)(void)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
Provided by category ThingSmartDevice(offlineSupport).
- (void) pushDpsWithHttp: | (NSDictionary *) | dps | |
success: | (void(^)(void)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
Provided by category ThingSmartDevice(offlineSupport).
- (void) queryDeviceOperateLogWithDpIds: | (NSArray *) | dpIds | |
offset: | (NSInteger) | offset | |
limit: | (NSInteger) | limit | |
startTime: | (NSDate *) | startTime | |
endTime: | (NSDate *) | endTime | |
isASC: | (BOOL) | isASC | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Query the device operate log
dpIds | the dp id array, such as @["1", @"2"] |
offset | offset |
limit | limit |
startTime | startTime |
endTime | endTime |
isASC | YES=ASC NO=DESC |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) queryDeviceOperateLogWithDpIds: | (NSArray *) | dpIds | |
offset: | (NSInteger) | offset | |
limit: | (NSInteger) | limit | |
startTime: | (NSDate *) | startTime | |
endTime: | (NSDate *) | endTime | |
isASC: | (BOOL) | isASC | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Query the device operate log
dpIds | the dp id array, such as @["1", @"2"] |
offset | offset |
limit | limit |
startTime | startTime |
endTime | endTime |
isASC | YES=ASC NO=DESC |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) queryDeviceOperateLogWithDpIds: | (NSArray *) | dpIds | |
offset: | (NSInteger) | offset | |
limit: | (NSInteger) | limit | |
startTime: | (NSDate *) | startTime | |
endTime: | (NSDate *) | endTime | |
isASC: | (BOOL) | isASC | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Query the device operate log
dpIds | the dp id array, such as @["1", @"2"] |
offset | offset |
limit | limit |
startTime | startTime |
endTime | endTime |
isASC | YES=ASC NO=DESC |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) queryDeviceOperateLogWithDpIds: | (NSArray *) | dpIds | |
offset: | (NSInteger) | offset | |
limit: | (NSInteger) | limit | |
startTime: | (NSDate *) | startTime | |
endTime: | (NSDate *) | endTime | |
isASC: | (BOOL) | isASC | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Query the device operate log
dpIds | the dp id array, such as @["1", @"2"] |
offset | offset |
limit | limit |
startTime | startTime |
endTime | endTime |
isASC | YES=ASC NO=DESC |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) remove: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Removes the device and unbinds the device from the current user.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) remove: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Removes the device and unbinds the device from the current user.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) remove: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Removes the device and unbinds the device from the current user.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) remove: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Removes the device and unbinds the device from the current user.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) removeFromCloud: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Only the device is deleted from the cloud. The device is not reset
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) removeFromCloud: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Only the device is deleted from the cloud. The device is not reset
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) removeFromCloud: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Only the device is deleted from the cloud. The device is not reset
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) removeFromCloud: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Only the device is deleted from the cloud. The device is not reset
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) removeReceiveDeviceShareWithSuccess: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Remove Received Shared.
success | Called when the task finishes successfully. |
failure | If error occurred while adding the task, this block will be called. |
Provided by category ThingSmartDevice(ShareInfo).
- (void) removeReceiveDeviceShareWithSuccess: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Remove Received Shared.
success | Called when the task finishes successfully. |
failure | If error occurred while adding the task, this block will be called. |
Provided by category ThingSmartDevice(ShareInfo).
- (void) removeReceiveDeviceShareWithSuccess: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Remove Received Shared.
success | Called when the task finishes successfully. |
failure | If error occurred while adding the task, this block will be called. |
Provided by category ThingSmartDevice(ShareInfo).
- (void) removeReceiveDeviceShareWithSuccess: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Remove Received Shared.
success | Called when the task finishes successfully. |
failure | If error occurred while adding the task, this block will be called. |
Provided by category ThingSmartDevice(ShareInfo).
- (void) requestCachedDps: | (void(^)(void)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
Provided by category ThingSmartDevice(offlineSupport).
- (void) requestCachedDps: | (void(^)(void)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
Provided by category ThingSmartDevice(offlineSupport).
- (void) resetFactory: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Restores factory settings.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) resetFactory: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Restores factory settings.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) resetFactory: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Restores factory settings.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) resetFactory: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Restores factory settings.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) resetFactoryFromCloud: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Delete device and clear data from cloud. The device is not reset
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) resetFactoryFromCloud: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Delete device and clear data from cloud. The device is not reset
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) resetFactoryFromCloud: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Delete device and clear data from cloud. The device is not reset
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) resetFactoryFromCloud: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Delete device and clear data from cloud. The device is not reset
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) saveUpgradeInfoWithSwitchValue: | (NSInteger) | switchValue | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Saves the switch value for automatic device over-the-air (OTA) updates.
switchValue | The value of the auto switch. 0 means off, and 1 means on. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) saveUpgradeInfoWithSwitchValue: | (NSInteger) | switchValue | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Saves the switch value for automatic device over-the-air (OTA) updates.
switchValue | The value of the auto switch. 0 means off, and 1 means on. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) saveUpgradeInfoWithSwitchValue: | (NSInteger) | switchValue | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Saves the switch value for automatic device over-the-air (OTA) updates.
switchValue | The value of the auto switch. 0 means off, and 1 means on. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) saveUpgradeInfoWithSwitchValue: | (NSInteger) | switchValue | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Saves the switch value for automatic device over-the-air (OTA) updates.
switchValue | The value of the auto switch. 0 means off, and 1 means on. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendCacheDps: | (NSDictionary *) | dps | |
validity: | (NSUInteger) | validity | |
dpCacheType: | (NSUInteger) | dpCacheType | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Publish dps cached in the cloud, and then the device itself requests to pull OR receives push from cloud.
Note: Only suitable for low-power device. When the device is dormant, sending dps through this API will be cached in the cloud for a period of time. When the device wakes up within the validity period, the device can get the cached dps
.
dps | The DP dictionary. |
validity | The cached dps validity period. (Unit: second, Range: 1 ~ 172800). |
dpCacheType | The dps cache type. ( 0 : device itself requests to pull, 1 : device receives push from cloud). |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendCacheDps: | (NSDictionary *) | dps | |
validity: | (NSUInteger) | validity | |
dpCacheType: | (NSUInteger) | dpCacheType | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Publish dps cached in the cloud, and then the device itself requests to pull OR receives push from cloud.
Note: Only suitable for low-power device. When the device is dormant, sending dps through this API will be cached in the cloud for a period of time. When the device wakes up within the validity period, the device can get the cached dps
.
dps | The DP dictionary. |
validity | The cached dps validity period. (Unit: second, Range: 1 ~ 172800). |
dpCacheType | The dps cache type. ( 0 : device itself requests to pull, 1 : device receives push from cloud). |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendCacheDps: | (NSDictionary *) | dps | |
validity: | (NSUInteger) | validity | |
dpCacheType: | (NSUInteger) | dpCacheType | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Publish dps cached in the cloud, and then the device itself requests to pull OR receives push from cloud.
Note: Only suitable for low-power device. When the device is dormant, sending dps through this API will be cached in the cloud for a period of time. When the device wakes up within the validity period, the device can get the cached dps
.
dps | The DP dictionary. |
validity | The cached dps validity period. (Unit: second, Range: 1 ~ 172800). |
dpCacheType | The dps cache type. ( 0 : device itself requests to pull, 1 : device receives push from cloud). |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendCacheDps: | (NSDictionary *) | dps | |
validity: | (NSUInteger) | validity | |
dpCacheType: | (NSUInteger) | dpCacheType | |
success: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Publish dps cached in the cloud, and then the device itself requests to pull OR receives push from cloud.
Note: Only suitable for low-power device. When the device is dormant, sending dps through this API will be cached in the cloud for a period of time. When the device wakes up within the validity period, the device can get the cached dps
.
dps | The DP dictionary. |
validity | The cached dps validity period. (Unit: second, Range: 1 ~ 172800). |
dpCacheType | The dps cache type. ( 0 : device itself requests to pull, 1 : device receives push from cloud). |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (ThingDoorBellError) sendHeartbeatWithType: | (ThingSmartDoorBellType) | type | |
messageId: | (NSString *) | messageId | |
Provided by category ThingSmartDevice(doorbell).
- (ThingDoorBellError) sendHeartbeatWithType: | (ThingSmartDoorBellType) | type | |
messageId: | (NSString *) | messageId | |
Provided by category ThingSmartDevice(doorbell).
- (void) setDevPropertyWithCode: | (NSString *) | code | |
value: | (id) | value | |
success: | (ThingSuccessBOOL) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sets the device custom data to record and store custom data information.
code | The custom data key. |
value | The custom data value. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) setDevPropertyWithCode: | (NSString *) | code | |
value: | (id) | value | |
success: | (ThingSuccessBOOL) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sets the device custom data to record and store custom data information.
code | The custom data key. |
value | The custom data value. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) setDevPropertyWithCode: | (NSString *) | code | |
value: | (id) | value | |
success: | (ThingSuccessBOOL) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sets the device custom data to record and store custom data information.
code | The custom data key. |
value | The custom data value. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) setDevPropertyWithCode: | (NSString *) | code | |
value: | (id) | value | |
success: | (ThingSuccessBOOL) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sets the device custom data to record and store custom data information.
code | The custom data key. |
value | The custom data value. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) setOfflineReminderStatus: | (BOOL) | status | |
success: | (nullable ThingSuccessBOOL) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sets the device offline notification.
status | Sends a notification when the device goes offline. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OfflineReminder).
- (void) setOfflineReminderStatus: | (BOOL) | status | |
success: | (nullable ThingSuccessBOOL) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sets the device offline notification.
status | Sends a notification when the device goes offline. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OfflineReminder).
- (void) setOfflineReminderStatus: | (BOOL) | status | |
success: | (nullable ThingSuccessBOOL) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sets the device offline notification.
status | Sends a notification when the device goes offline. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OfflineReminder).
- (void) setOfflineReminderStatus: | (BOOL) | status | |
success: | (nullable ThingSuccessBOOL) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sets the device offline notification.
status | Sends a notification when the device goes offline. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(OfflineReminder).
- (void) startFirmwareUpgrade: | (NSArray< ThingSmartFirmwareUpgradeModel * > *) | firmwares |
Start device firmware upgrade. ( for general device and some special device. ) Notice:
- device:otaUpdateStatusChanged:
) to receive the status and progress.-checkFirmwareUpgrade:failure:
or -checkFirmwareUpgradeWithExtraInfo:success:failure
before call this. firmwares | firmwares from -checkFirmwareUpgrade:failure: or -checkFirmwareUpgradeWithExtraInfo:success:failure |
Provided by category ThingSmartDevice(OTA).
- (void) startFirmwareUpgrade: | (NSArray< ThingSmartFirmwareUpgradeModel * > *) | firmwares |
Start device firmware upgrade. ( for general device and some special device. ) Notice:
- device:otaUpdateStatusChanged:
) to receive the status and progress.-checkFirmwareUpgrade:failure:
or -checkFirmwareUpgradeWithExtraInfo:success:failure
before call this. firmwares | firmwares from -checkFirmwareUpgrade:failure: or -checkFirmwareUpgradeWithExtraInfo:success:failure |
Provided by category ThingSmartDevice(OTA).
- (void) startFirmwareUpgrade: | (NSArray< ThingSmartFirmwareUpgradeModel * > *) | firmwares |
Start device firmware upgrade. ( for general device and some special device. ) Notice:
- device:otaUpdateStatusChanged:
) to receive the status and progress.-checkFirmwareUpgrade:failure:
or -checkFirmwareUpgradeWithExtraInfo:success:failure
before call this. firmwares | firmwares from -checkFirmwareUpgrade:failure: or -checkFirmwareUpgradeWithExtraInfo:success:failure |
Provided by category ThingSmartDevice(OTA).
- (void) startFirmwareUpgrade: | (NSArray< ThingSmartFirmwareUpgradeModel * > *) | firmwares |
Start device firmware upgrade. ( for general device and some special device. ) Notice:
- device:otaUpdateStatusChanged:
) to receive the status and progress.-checkFirmwareUpgrade:failure:
or -checkFirmwareUpgradeWithExtraInfo:success:failure
before call this. firmwares | firmwares from -checkFirmwareUpgrade:failure: or -checkFirmwareUpgradeWithExtraInfo:success:failure |
Provided by category ThingSmartDevice(OTA).
+ (void) syncDeviceInfoWithDevId: | (NSString *) | devId | |
homeId: | (long long) | homeId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes device information.
devId | The device ID. |
homeId | The home ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(Home).
+ (void) syncDeviceInfoWithDevId: | (NSString *) | devId | |
homeId: | (long long) | homeId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes device information.
devId | The device ID. |
homeId | The home ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(Home).
+ (void) syncDeviceInfoWithDevId: | (NSString *) | devId | |
homeId: | (long long) | homeId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes device information.
devId | The device ID. |
homeId | The home ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(Home).
+ (void) syncDeviceInfoWithDevId: | (NSString *) | devId | |
homeId: | (long long) | homeId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes device information.
devId | The device ID. |
homeId | The home ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(Home).
+ (void) syncDeviceInfoWithDevId: | (NSString *) | devId | |
success: | (nullable void(^)(ThingSmartDeviceModel *device)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes device information.
devId | The device ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
+ (void) syncDeviceInfoWithDevId: | (NSString *) | devId | |
success: | (nullable void(^)(ThingSmartDeviceModel *device)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes device information.
devId | The device ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
+ (void) syncDeviceInfoWithDevId: | (NSString *) | devId | |
success: | (nullable void(^)(ThingSmartDeviceModel *device)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes device information.
devId | The device ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
+ (void) syncDeviceInfoWithDevId: | (NSString *) | devId | |
success: | (nullable void(^)(ThingSmartDeviceModel *device)) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes device information.
devId | The device ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) syncLocationToDeviceWithSucecess: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes the longitude and latitude of the mobile phone to the device.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) syncLocationToDeviceWithSucecess: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes the longitude and latitude of the mobile phone to the device.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) syncLocationToDeviceWithSucecess: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes the longitude and latitude of the mobile phone to the device.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) syncLocationToDeviceWithSucecess: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes the longitude and latitude of the mobile phone to the device.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
+ (void) syncSubDeviceInfoWithGatewayId: | (NSString *) | gatewayId | |
devId: | (NSString *) | devId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes sub-device information.
gatewayId | The gateway ID. |
devId | The device ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
+ (void) syncSubDeviceInfoWithGatewayId: | (NSString *) | gatewayId | |
devId: | (NSString *) | devId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes sub-device information.
gatewayId | The gateway ID. |
devId | The device ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
+ (void) syncSubDeviceInfoWithGatewayId: | (NSString *) | gatewayId | |
devId: | (NSString *) | devId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes sub-device information.
gatewayId | The gateway ID. |
devId | The device ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
+ (void) syncSubDeviceInfoWithGatewayId: | (NSString *) | gatewayId | |
devId: | (NSString *) | devId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes sub-device information.
gatewayId | The gateway ID. |
devId | The device ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
+ (void) syncSubDeviceLocalKeyWithGatewayId: | (NSString *) | gatewayId | |
nodeIds: | (NSArray< NSString * > *) | nodeId | |
success: | (nullable ThingSuccessList) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes the localKey of the device.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
+ (void) syncSubDeviceLocalKeyWithGatewayId: | (NSString *) | gatewayId | |
nodeIds: | (NSArray< NSString * > *) | nodeId | |
success: | (nullable ThingSuccessList) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes the localKey of the device.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
+ (void) syncSubDeviceLocalKeyWithGatewayId: | (NSString *) | gatewayId | |
nodeIds: | (NSArray< NSString * > *) | nodeId | |
success: | (nullable ThingSuccessList) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes the localKey of the device.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
+ (void) syncSubDeviceLocalKeyWithGatewayId: | (NSString *) | gatewayId | |
nodeIds: | (NSArray< NSString * > *) | nodeId | |
success: | (nullable ThingSuccessList) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes the localKey of the device.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) syncWithCloud: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes device information.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) syncWithCloud: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes device information.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) syncWithCloud: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes device information.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) syncWithCloud: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Synchronizes device information.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) tsod_publishDPWithCode: | (NSString *) | code | |
DPValue: | (id) | DPValue | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
send DP with code
code | DP code |
DPValue | the DP original value (NSString, NSNumber, NSDictionary) |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(ThingSmartOutdoor).
- (void) tsod_publishDPWithCode: | (NSString *) | code | |
DPValue: | (id) | DPValue | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
send DP with code
code | DP code |
DPValue | the DP original value (NSString, NSNumber, NSDictionary) |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartDevice(ThingSmartOutdoor).
- (void) updateBootOTAWithSingleBootStatus: | (BOOL) | bootOTABeing |
Provided by category ThingSmartDevice(OTA).
- (void) updateBootOTAWithSingleBootStatus: | (BOOL) | bootOTABeing |
Provided by category ThingSmartDevice(OTA).
- (void) updateBootOTAWithSingleBootStatus: | (BOOL) | bootOTABeing |
Provided by category ThingSmartDevice(OTA).
- (void) updateBootOTAWithSingleBootStatus: | (BOOL) | bootOTABeing |
Provided by category ThingSmartDevice(OTA).
- (void) updateDeviceVersion: | (NSString *) | version | |
type: | (NSInteger) | type | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Reports the device firmware version.
version | The device version. |
type | The device type. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateDeviceVersion: | (NSString *) | version | |
type: | (NSInteger) | type | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Reports the device firmware version.
version | The device version. |
type | The device type. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateDeviceVersion: | (NSString *) | version | |
type: | (NSInteger) | type | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Reports the device firmware version.
version | The device version. |
type | The device type. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateDeviceVersion: | (NSString *) | version | |
type: | (NSInteger) | type | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Reports the device firmware version.
version | The device version. |
type | The device type. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateIcon: | (UIImage *) | icon | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the device icon.
icon | The device icon. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateIcon: | (UIImage *) | icon | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the device icon.
icon | The device icon. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateIcon: | (UIImage *) | icon | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the device icon.
icon | The device icon. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateIcon: | (UIImage *) | icon | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the device icon.
icon | The device icon. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateIconWithCloudKey: | (NSString *) | cloudKey | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("This method is) | deprecated | |
(Use - instead") | __deprecated_msg[ThingSmartDevice - updateIconWithURL:success:failure] | ||
Edits the device icon.
cloudKey | The cloud key. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateIconWithCloudKey: | (NSString *) | cloudKey | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("This method is) | deprecated | |
(Use - instead") | __deprecated_msg[ThingSmartDevice - updateIconWithURL:success:failure] | ||
Edits the device icon.
cloudKey | The cloud key. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateIconWithCloudKey: | (NSString *) | cloudKey | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("This method is) | deprecated | |
(Use - instead") | __deprecated_msg[ThingSmartDevice - updateIconWithURL:success:failure] | ||
Edits the device icon.
cloudKey | The cloud key. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateIconWithCloudKey: | (NSString *) | cloudKey | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("This method is) | deprecated | |
(Use - instead") | __deprecated_msg[ThingSmartDevice - updateIconWithURL:success:failure] | ||
Edits the device icon.
cloudKey | The cloud key. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateIconWithURL: | (NSString *) | url | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the device icon.
url | The icon url. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateIconWithURL: | (NSString *) | url | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the device icon.
url | The icon url. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateIconWithURL: | (NSString *) | url | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the device icon.
url | The icon url. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateIconWithURL: | (NSString *) | url | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the device icon.
url | The icon url. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateLocalKeySuccess: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Update device local key.
Provided by category ThingSmartDevice(LocalKey).
- (void) updateLocalKeySuccess: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Update device local key.
Provided by category ThingSmartDevice(LocalKey).
- (void) updateLocalKeySuccess: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Update device local key.
Provided by category ThingSmartDevice(LocalKey).
- (void) updateLocalKeySuccess: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Update device local key.
Provided by category ThingSmartDevice(LocalKey).
- (void) updateName: | (NSString *) | name | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the device name.
name | The device name. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateName: | (NSString *) | name | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the device name.
name | The device name. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateName: | (NSString *) | name | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the device name.
name | The device name. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateName: | (NSString *) | name | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the device name.
name | The device name. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) upgradeFirmware: | (NSInteger) | type | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("This method is) | deprecated | |
(Use - instead") | __deprecated_msg[ThingSmartDevice startFirmwareUpgrade:] | ||
Updates the firmware and receives a success or failure callback from ThingSmartDeviceDelegate.
type | The device type of "ThingSmartFirmwareUpgradeModel". |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) upgradeFirmware: | (NSInteger) | type | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("This method is) | deprecated | |
(Use - instead") | __deprecated_msg[ThingSmartDevice startFirmwareUpgrade:] | ||
Updates the firmware and receives a success or failure callback from ThingSmartDeviceDelegate.
type | The device type of "ThingSmartFirmwareUpgradeModel". |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) upgradeFirmware: | (NSInteger) | type | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("This method is) | deprecated | |
(Use - instead") | __deprecated_msg[ThingSmartDevice startFirmwareUpgrade:] | ||
Updates the firmware and receives a success or failure callback from ThingSmartDeviceDelegate.
type | The device type of "ThingSmartFirmwareUpgradeModel". |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) upgradeFirmware: | (NSInteger) | type | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("This method is) | deprecated | |
(Use - instead") | __deprecated_msg[ThingSmartDevice startFirmwareUpgrade:] | ||
Updates the firmware and receives a success or failure callback from ThingSmartDeviceDelegate.
type | The device type of "ThingSmartFirmwareUpgradeModel". |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
|
readwritenonatomicweak |
Definition at line 202 of file ThingSmartDevice.h.
|
readnonatomicstrong |
Returns the model of basic device information.
Definition at line 200 of file ThingSmartDevice.h.
|
readnonatomicstrong |
Returns the device id.
Definition at line 198 of file ThingSmartDevice.h.