wei
2021-01-20 e985d1b79937c41ebdaa4caa2974ec03929db915
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
//
//  BlufiNotifyData.m
//  EspBlufi
//
//  Created by AE on 2020/6/9.
//  Copyright © 2020 espressif. All rights reserved.
//
 
#import "BlufiNotifyData.h"
 
@interface BlufiNotifyData()
 
@property(strong, nonatomic)NSMutableData *data;
 
@end
 
@implementation BlufiNotifyData
 
- (instancetype)init {
    self = [super init];
    if (self) {
        _data = [[NSMutableData alloc] init];
    }
    return self;
}
 
- (void)appendData:(NSData *)data {
    [_data appendData:data];
}
 
- (NSData *)getData {
    return [NSData dataWithData:_data];
}
 
@end