1
wei
2021-01-21 62d098cb78296feaa6f786a20748921338db838c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//
// TuyaSmartDeviceCoreKitErrors.h
// TuyaSmartDeviceCoreKit
//
// Copyright (c) 2014-2021 Tuya Inc. (https://developer.tuya.com)
 
#ifndef TuyaSmartDeviceCoreKitErrors_h
#define TuyaSmartDeviceCoreKitErrors_h
 
/*
 *  TYDeviceCoreKitError
 *
 *  Discussion:
 *    Error returned as code to NSError from TuyaSmartDeviceKit.
 */
extern NSString *const kTYDeviceCoreKitErrorDomain;
 
typedef NS_ENUM(NSInteger, TYDeviceCoreKitError) {
    kTYDeviceCoreKitErrorDeviceNotSupport                      = 3000, ///< The device does not support a certain capability (capability reported on the device dimension).
    kTYDeviceCoreKitErrorSocketSendDataFailed                  = 3001, ///< LAN downstream data failure
    kTYDeviceCoreKitErrorEmptyDpsData                          = 3002, // DPS command is empty.
    kTYDeviceCoreKitErrorGroupDeviceListEmpty                  = 3003, // Group device is empty.
    kTYDeviceCoreKitErrorGroupIdLengthError                    = 3004, // Group ID length error.
    kTYDeviceCoreKitErrorIllegalDpData                         = 3005, // Illegal dps, see product dp definition.
    kTYDeviceCoreKitErrorDeviceIdLengthError                   = 3006, // Device ID length error.
    kTYDeviceCoreKitErrorDeviceLocalKeyNotFound                = 3007, // Missing local key.
    kTYDeviceCoreKitErrorDeviceProductIDLengthError            = 3008, // Product ID length error.
    
};
 
#endif /* TuyaSmartDeviceCoreKitErrors_h */