添加重启、恢复出厂的udp指令实现

This commit is contained in:
xuemh
2018-08-06 22:35:06 +08:00
parent 4546e0b981
commit 1028ffa9ac
12 changed files with 209 additions and 27 deletions
@@ -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