JLChen
2021-10-28 e96683081abd5c1a94608dd33d092d8f45371cd6
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//
//  Copyright © 2019 dahua. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
typedef enum : NSUInteger {
    LinkStatusNoConnect,//未连接
    LinkStatusConnecting,//连接中
    LinkStatusConnected //已连接
} LCWiFiLinkStatus;//当前连接类型
 
typedef enum : NSUInteger {
    LinkDisconnectHandle,//断开连接
    LinkConnectHandle//连接
} LCLinkHandle;//操作类型
 
NS_ASSUME_NONNULL_BEGIN
 
@interface LCWifiConnectSession : NSObject
 
/// WiFi名称
@property (strong, nonatomic) NSString *ssid;
 
/// BSSID 通常为一个Mac地址,仅控制设备连接指定WiFi时有效
@property (strong, nonatomic) NSString *bssid;
 
/// 连接状态
@property (nonatomic) LCLinkHandle linkEnable;
 
/// 密码
@property (strong, nonatomic) NSString *password;
 
/// 信号强度 0-5,0最弱,5最强,仅获取当前连接WiFI信息时有效
@property (nonatomic) int intensity;
 
@end
 
 
@interface LCWifiInfo : NSObject
 
/// WiFi名称
@property (strong, nonatomic) NSString *ssid;
 
/// BSSID 通常为一个Mac地址
@property (strong, nonatomic) NSString *bssid;
 
/// 连接状态
@property (nonatomic) LCWiFiLinkStatus linkStatus;
 
/// 认证模式
@property (strong, nonatomic) NSString *auth;
 
/// 信号强度 0-5,0最弱,5最强
@property (nonatomic) int intensity;
 
@end
 
 
@interface LCAroundWifiInfo : NSObject
 
/// 设备是否开启wifi
@property (nonatomic) BOOL enable;
 
/// wifi列表
@property (strong, nonatomic) NSArray<LCWifiInfo *> *wLan;
 
@end
 
NS_ASSUME_NONNULL_END