Tuya iOS Smart Life App SDK 5.15.0
ThingSmartDeviceModelUtils.h
Go to the documentation of this file.
1//
2// ThingSmartDeviceModelUtils.h
3// ThingSmartDeviceCoreKit
4//
5// Copyright (c) 2014-2024.
6//
7
8#ifndef ThingSmartDeviceModelUtils_h
9#define ThingSmartDeviceModelUtils_h
10
12typedef enum : NSUInteger {
22
25
27typedef NS_ENUM(NSUInteger, ThingSmartDeviceUpgradeMode) {
29 ThingSmartDeviceUpgradeModeNormal = 0,
31 ThingSmartDeviceUpgradeModePidVersion = 1,
32};
33
34#endif /* ThingSmartDeviceModelUtils_h */
typedef NS_ENUM(NSUInteger, ThingSmartDeviceUpgradeMode)
The device update mode.
ThingSmartDeviceUpgradeStatus
The device update status.
@ ThingSmartDeviceUpgradeStatusSuccess
Success: The update is completed.
@ ThingSmartDeviceUpgradeStatusWaitingExectue
NB-IoT devices wait to execute NB-IoT tasks. Device tasks have been sent but not yet executed.
@ ThingSmartDeviceUpgradeStatusFailure
Failure: The update has an exception.
@ ThingSmartDeviceUpgradeStatusInQueue
InQueue: The update is in the queue.
@ ThingSmartDeviceUpgradeStatusUpgrading
Upgrading: The update is in progress.
@ ThingSmartDeviceUpgradeStatusDownloaded
NB-IoT devices have downloaded NB-IoT firmware.
@ ThingSmartDeviceUpgradeStatusReady
Ready: The hardware is ready.
@ ThingSmartDeviceUpgradeStatusDefault
Default: No update is required.
@ ThingSmartDeviceUpgradeStatusTimeout
Timeout: The update timed out.
@ ThingSmartDeviceUpgradeStatusLocalPrepare
LocalPrepare: The app local prepare status. (when the device is linking, switch to sub device,...