25 lines
720 B
Objective-C
25 lines
720 B
Objective-C
//
|
|
// IFishUDPHelperBackMsgModel.m
|
|
// Ifish
|
|
//
|
|
// Created by Minghao Xue on 2018/8/6.
|
|
// Copyright © 2018年 lianlian. All rights reserved.
|
|
//
|
|
|
|
#import "IFishUDPHelperBackMsgModel.h"
|
|
|
|
@implementation IFishUDPHelperBackMsgModel
|
|
|
|
- (instancetype)initWithData:(NSData *)data {
|
|
if (self = [super init]) {
|
|
NSString*totalString=[dataContorl dataToHexString:data];
|
|
self.senderMacAddress = [totalString substringWithRange:NSMakeRange(4, 12)];
|
|
self.result = [totalString substringWithRange:NSMakeRange(30, 2)];
|
|
self.changshang = [totalString substringWithRange:NSMakeRange(32, 2)];
|
|
self.device = [totalString substringWithRange:NSMakeRange(34, 2)];
|
|
}
|
|
return self;
|
|
}
|
|
|
|
@end
|