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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// TYBLEAdvModel.h
// TuyaSmartBLEKit
//
// Copyright (c) 2014-2021 Tuya Inc. (https://developer.tuya.com)
 
typedef enum : NSUInteger {
    /// The unknown BLE device type.
    TYSmartBLETypeUnknow = 1,
    /// The old protocol BLE device type, which is not support security protocol.
    TYSmartBLETypeBLE,
    /// The old protocol BLE device type, which has a lower level of security.
    TYSmartBLETypeBLEPlus,
    /// The old protocol BLE dual-mode device type, which is not support security protocol.
    TYSmartBLETypeBLEWifi,
    /// The new protocol BLE device type, which has a high level of security.
    TYSmartBLETypeBLESecurity,
    /// The new protocol BLE dual-mode device type, which has a high level of security.
    TYSmartBLETypeBLEWifiSecurity,
} TYSmartBLEType;
 
/// @brief TYBLEAdvModel provides model for developers to obtaine BLE device broadcast information.
///
/// All the device information is obtained from the Bluetooth device broadcast packet data.
 
/// The different types of BLE device type. See explanation below.
@interface TYBLEAdvModel : NSObject
 
/// The BLE device UUID.
@property (nonatomic, strong) NSString           *uuid;
/// The BLE device product Id.
@property (nonatomic, strong) NSString           *productId;
/// The BLE device mac address.
@property (nonatomic, strong) NSString           *mac;
/// The BLE device activation state.
@property (nonatomic, assign) BOOL               isActive;
/// The BLE device BLE device type.
@property (nonatomic, assign) TYSmartBLEType     bleType;
/// whether the BLE device support connect the router 5G band.
/// @note only available for `bleType` is `TYSmartBLETypeBLEWifi` or `TYSmartBLETypeBLEWifiSecurity`.
@property (nonatomic, assign) BOOL               isSupport5G;
/// whether the BLE device support product key.
@property (nonatomic, assign) BOOL               isProuductKey;
/// The BLE device device protocol version.
@property (nonatomic, assign) int                bleProtocolV;
 
@end