添加重启、恢复出厂的udp指令实现
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// RestartDeviceModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by Minghao Xue on 2018/8/6.
|
||||
// Copyright © 2018年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import "RestartDeviceModel.h"
|
||||
|
||||
@implementation RestartDeviceModel
|
||||
|
||||
- (NSString *)description{
|
||||
|
||||
self.messagetype=@"00";
|
||||
self.massagelegth=@"11";
|
||||
self.functionCode=@"13";
|
||||
self.sendmacId = @"000000000000";
|
||||
self.resavemacId = @"000000000000";
|
||||
|
||||
return [NSString stringWithFormat:@"%@%@%@%@%@%@", self.messagetype,self.functionCode,self.sendmacId,self.resavemacId,self.massagelegth,[self crcCode]];
|
||||
}
|
||||
|
||||
- (NSString *)crcCode {
|
||||
return @"0000";
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user