Tuya iOS Smart Life App SDK 5.15.0
ThingSmartFirmwareUpgradeModel Class Reference

The device firmware update information. (Provided for home owner role or administrator role users.) More...

#import <ThingSmartFirmwareUpgradeModel.h>

Inheritance diagram for ThingSmartFirmwareUpgradeModel:

Instance Methods

(NSString *downloadingDesc) - __deprecated_msg
 The notification text in the device download firmware. Currently, only NB-IoT devices are supported. More...
 
(NSString *downloadingDesc) - __deprecated_msg
 The notification text in the device download firmware. Currently, only NB-IoT devices are supported. More...
 
(NSString *downloadingDesc) - __deprecated_msg
 The notification text in the device download firmware. Currently, only NB-IoT devices are supported. More...
 
(NSString *downloadingDesc) - __deprecated_msg
 The notification text in the device download firmware. Currently, only NB-IoT devices are supported. More...
 

Properties

NSString * desc
 The update copywriting. More...
 
NSString * typeDesc
 The device type copywriting. More...
 
ThingSmartDeviceUpgradeStatus upgradeStatus
 Valid values: 0: no later version. 1: a later version available. 2: updating. 5: waiting for the device to wake up. More...
 
NSString * version
 The firmware version that is used in the later version. More...
 
NSString * currentVersion
 The current firmware version in use. More...
 
NSInteger timeout
 The update timeout. Unit: seconds. More...
 
NSInteger upgradeType
 
NSInteger type
 
NSInteger devType
 
NSString * url
 The download URL of the update firmware for Bluetooth devices. More...
 
NSString * md5
 The firmware MD5 message-digest algorithm. More...
 
NSString * fileSize
 The size of the firmware package. Unit: bytes. More...
 
NSString * sign
 Firmware sign. More...
 
long long lastUpgradeTime
 The last update time of the DP. More...
 
long long firmwareDeployTime
 The firmware release date. More...
 
BOOL controlType
 Indicates whether the update device is controllable. 1 : controllable. 0 : not controllable. More...
 
NSString * waitingDesc
 The description of waiting for device wake-up. The low-power non-keep-alive device is in the state of "waiting for device wake-up" before an update. More...
 
NSString * upgradingDesc
 The notification text in the firmware update. More...
 
NSNumber * canUpgrade
 if the device has the ability to upgrade.can not upgrade like low power. It will be nil when device has not dp check. More...
 
NSString * remind
 The remind when device can not upgrade.Value can be nil. More...
 
NSString * hmac
 The firmware sign hmac. More...
 
BOOL diffOta
 The firmware support differential packet or not. More...
 
NSString * filePath
 The firmware's local file path for upgrade used lan way. More...
 
ThingSmartDeviceUpgradeMode upgradeMode
 
BOOL autoSwitch
 

Detailed Description

The device firmware update information. (Provided for home owner role or administrator role users.)

Definition at line 17 of file ThingSmartFirmwareUpgradeModel.h.

Method Documentation

◆ __deprecated_msg [1/4]

- (NSString *downloadingDesc) __deprecated_msg ("This property is)  deprecated
(Use upgradingDesc instead")   

The notification text in the device download firmware. Currently, only NB-IoT devices are supported.

◆ __deprecated_msg [2/4]

- (NSString *downloadingDesc) __deprecated_msg ("This property is)  deprecated
(Use upgradingDesc instead")   

The notification text in the device download firmware. Currently, only NB-IoT devices are supported.

◆ __deprecated_msg [3/4]

- (NSString *downloadingDesc) __deprecated_msg ("This property is)  deprecated
(Use upgradingDesc instead")   

The notification text in the device download firmware. Currently, only NB-IoT devices are supported.

◆ __deprecated_msg [4/4]

- (NSString *downloadingDesc) __deprecated_msg ("This property is)  deprecated
(Use upgradingDesc instead")   

The notification text in the device download firmware. Currently, only NB-IoT devices are supported.

Property Documentation

◆ autoSwitch

- (BOOL) autoSwitch
readwritenonatomicassign

Definition at line 101 of file ThingSmartFirmwareUpgradeModel.h.

◆ canUpgrade

- (NSNumber *) canUpgrade
readwritenonatomicstrong

if the device has the ability to upgrade.can not upgrade like low power. It will be nil when device has not dp check.

Definition at line 78 of file ThingSmartFirmwareUpgradeModel.h.

◆ controlType

- (BOOL) controlType
readwritenonatomicassign

Indicates whether the update device is controllable. 1 : controllable. 0 : not controllable.

Definition at line 69 of file ThingSmartFirmwareUpgradeModel.h.

◆ currentVersion

- (NSString *) currentVersion
readwritenonatomicstrong

The current firmware version in use.

Definition at line 32 of file ThingSmartFirmwareUpgradeModel.h.

◆ desc

- (NSString *) desc
readwritenonatomicstrong

The update copywriting.

Definition at line 20 of file ThingSmartFirmwareUpgradeModel.h.

◆ devType

- (NSInteger) devType
readwritenonatomicassign

Definition at line 48 of file ThingSmartFirmwareUpgradeModel.h.

◆ diffOta

- (BOOL) diffOta
readwritenonatomicassign

The firmware support differential packet or not.

Definition at line 87 of file ThingSmartFirmwareUpgradeModel.h.

◆ filePath

- (NSString *) filePath
readwritenonatomicstrong

The firmware's local file path for upgrade used lan way.

Definition at line 90 of file ThingSmartFirmwareUpgradeModel.h.

◆ fileSize

- (NSString *) fileSize
readwritenonatomicstrong

The size of the firmware package. Unit: bytes.

Definition at line 57 of file ThingSmartFirmwareUpgradeModel.h.

◆ firmwareDeployTime

- (long long) firmwareDeployTime
readwritenonatomicassign

The firmware release date.

Definition at line 66 of file ThingSmartFirmwareUpgradeModel.h.

◆ hmac

- (NSString *) hmac
readwritenonatomiccopy

The firmware sign hmac.

Definition at line 84 of file ThingSmartFirmwareUpgradeModel.h.

◆ lastUpgradeTime

- (long long) lastUpgradeTime
readwritenonatomicassign

The last update time of the DP.

Definition at line 63 of file ThingSmartFirmwareUpgradeModel.h.

◆ md5

- (NSString *) md5
readwritenonatomicstrong

The firmware MD5 message-digest algorithm.

Definition at line 54 of file ThingSmartFirmwareUpgradeModel.h.

◆ remind

- (NSString *) remind
readwritenonatomiccopy

The remind when device can not upgrade.Value can be nil.

Definition at line 81 of file ThingSmartFirmwareUpgradeModel.h.

◆ sign

- (NSString *) sign
readwritenonatomicstrong

Firmware sign.

Definition at line 60 of file ThingSmartFirmwareUpgradeModel.h.

◆ timeout

- (NSInteger) timeout
readwritenonatomicassign

The update timeout. Unit: seconds.

Definition at line 35 of file ThingSmartFirmwareUpgradeModel.h.

◆ type

- (NSInteger) type
readwritenonatomicassign

The firmware type. Notice: only have meanning when upgradeMode == ThingSmartDeviceUpgradeModeNormal

Definition at line 45 of file ThingSmartFirmwareUpgradeModel.h.

◆ typeDesc

- (NSString *) typeDesc
readwritenonatomicstrong

The device type copywriting.

Definition at line 23 of file ThingSmartFirmwareUpgradeModel.h.

◆ upgradeMode

- (ThingSmartDeviceUpgradeMode) upgradeMode
readwritenonatomicassign

The firmware upgrade mode. (normal upgrade, pid version upgrade, ... )

  • Normal (0): The upgrade for the Device modules.
  • PidVersion (1): The upgrade for the Product info.

Definition at line 98 of file ThingSmartFirmwareUpgradeModel.h.

◆ upgradeStatus

- (ThingSmartDeviceUpgradeStatus) upgradeStatus
readwritenonatomicassign

Valid values: 0: no later version. 1: a later version available. 2: updating. 5: waiting for the device to wake up.

Definition at line 26 of file ThingSmartFirmwareUpgradeModel.h.

◆ upgradeType

- (NSInteger) upgradeType
readwritenonatomicassign

The upgrade reminder recommend. Used to display UI different.

  • 0: update remind. (General present a Alert to user, user can select upgrade or not.)
  • 2: forced update. (General present a Alert to user, but user can only select upgrade.)
  • 3: update detection. (General use a Little Red Mark to express there has a new version.)

Definition at line 41 of file ThingSmartFirmwareUpgradeModel.h.

◆ upgradingDesc

- (NSString *) upgradingDesc
readwritenonatomicstrong

The notification text in the firmware update.

Definition at line 75 of file ThingSmartFirmwareUpgradeModel.h.

◆ url

- (NSString *) url
readwritenonatomicstrong

The download URL of the update firmware for Bluetooth devices.

Definition at line 51 of file ThingSmartFirmwareUpgradeModel.h.

◆ version

- (NSString *) version
readwritenonatomicstrong

The firmware version that is used in the later version.

Definition at line 29 of file ThingSmartFirmwareUpgradeModel.h.

◆ waitingDesc

- (NSString *) waitingDesc
readwritenonatomicstrong

The description of waiting for device wake-up. The low-power non-keep-alive device is in the state of "waiting for device wake-up" before an update.

Definition at line 72 of file ThingSmartFirmwareUpgradeModel.h.


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