JLChen
2021-11-04 1443556e9ccb1a19ed8e6710c16c8adc4d4f4fb3
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
//
//  HintViewController.h
//  LCOpenSDKDemo
//
//  Created by chenjian on 16/7/11.
//  Copyright (c) 2016年 lechange. All rights reserved.
//
#ifndef LCOpenSDKDemo_AddDeviceViewController_h
#define LCOpenSDKDemo_AddDeviceViewController_h
 
#import "MyViewController.h"
#import "RestApiService.h"
#import <UIKit/UIKit.h>
 
@interface AddDeviceViewController : MyViewController <UITextFieldDelegate> {
    LCOpenSDK_Api* m_hc;
 
    NSString* m_strAccessToken;
}
@property (weak, nonatomic) IBOutlet UITextField *m_textSerial;
@property (weak, nonatomic) IBOutlet UITextField *m_textDeviceKey;
@property (weak, nonatomic) IBOutlet UITextField *m_textPasswd;
@property (weak, nonatomic) IBOutlet UILabel *m_lblDeviceSN;
@property (weak, nonatomic) IBOutlet UILabel *m_lblDeviceKey;
@property (weak, nonatomic) IBOutlet UILabel *m_lblSsid;
@property (weak, nonatomic) IBOutlet UILabel *m_lblHint;
@property (weak, nonatomic) IBOutlet UIButton *m_btnWifi;
@property (weak, nonatomic) IBOutlet UIButton *m_btnWired;
@property (weak, nonatomic) IBOutlet UIButton *m_btnSoftAP;
 
- (void)onBack:(id)sender;
- (void)setInfo:(LCOpenSDK_Api*)hc token:(NSString*)token devView:(id)view;
 
- (IBAction)onWifi:(id)sender;
- (IBAction)onWired:(id)sender;
- (IBAction)onSoftAP:(id)sender;
- (void)notify:(NSInteger)event;
- (void)initDevice:(int)timeout;
 
- (BOOL)textFieldShouldBeginEditing:(UITextField*)textField;
- (BOOL)textFieldShouldEndEditing:(UITextField*)textField;
- (BOOL)textFieldShouldReturn:(UITextField*)textField;
@end
#endif