添加重启、恢复出厂的udp指令实现
This commit is contained in:
+8
-12
@@ -7,8 +7,9 @@
|
||||
//
|
||||
|
||||
#import "SettingResetViewController.h"
|
||||
#import "IFishHotpotUDPHelper.h"
|
||||
|
||||
@interface SettingResetViewController ()
|
||||
@interface SettingResetViewController ()<IFishHotpotUDPHelperDelegate>
|
||||
|
||||
@end
|
||||
|
||||
@@ -19,20 +20,15 @@
|
||||
self.title = @"恢复出厂设置";
|
||||
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning {
|
||||
[super didReceiveMemoryWarning];
|
||||
// Dispose of any resources that can be recreated.
|
||||
- (IBAction)reset:(id)sender {
|
||||
[IFishHotpotUDPHelper sharedInstance].delegate = self;
|
||||
[[IFishHotpotUDPHelper sharedInstance] broadCastRestCommand];
|
||||
}
|
||||
|
||||
/*
|
||||
#pragma mark - Navigation
|
||||
#pragma mark - IFishHotpotUDPHelperDelegate
|
||||
|
||||
// In a storyboard-based application, you will often want to do a little preparation before navigation
|
||||
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
|
||||
// Get the new view controller using [segue destinationViewController].
|
||||
// Pass the selected object to the new view controller.
|
||||
- (void)udpHelperCommandExecutedSuccess {
|
||||
[self.view makeToast:@"设备即将重置"];
|
||||
}
|
||||
*/
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user