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
//
// TuyaSmartCommunicationMode.h
// TuyaSmartDeviceCoreKit
//
// Copyright (c) 2014-2021 Tuya Inc. (https://developer.tuya.com)
 
#import <Foundation/Foundation.h>
 
NS_ASSUME_NONNULL_BEGIN
 
typedef NS_ENUM(NSUInteger, TYCommunicationType) {
    TYCommunicationTypeLAN      = 0, // LAN
    TYCommunicationTypeMQTT     = 1, // MQTT
    TYCommunicationTypeHTTP     = 2, // Http
    TYCommunicationTypeBLE      = 3, // Single Point Bluetooth
    TYCommunicationTypeSIGMesh  = 4, // Sig Mesh
    TYCommunicationTypeBLEMesh  = 5, // Tuya Private Mesh
};
 
@interface TuyaSmartCommunicationMode : NSObject
 
/// Communication protocol version
@property (nonatomic, assign) double pv;
 
/// Communication Protocol Type
@property (nonatomic, assign) TYCommunicationType type;
 
@end
 
@interface TuyaSmartCommunication : NSObject
 
/// Communication sequence
@property (nonatomic, strong) NSArray<TuyaSmartCommunicationMode *> *communicationModes;
 
/// Communication Nodes
@property (nonatomic, strong) NSString *communicationNode;
 
@end
 
NS_ASSUME_NONNULL_END