RTKMultiDFUPeripheral.h
1.08 KB
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
36
37
38
39
40
41
42
//
// RTKMultiDFUPeripheral.h
// RTKOTASDK
//
// Created by jerome_gu on 2019/4/16.
// Copyright © 2019 Realtek. All rights reserved.
//
#ifdef RTK_SDK_IS_STATIC_LIBRARY
#import "RTKDFUPeripheral.h"
#else
#import <RTKOTASDK/RTKDFUPeripheral.h>
#endif
NS_ASSUME_NONNULL_BEGIN
@class RTKOTAProfile;
@class RTKMultiDFUPeripheral;
@protocol RTKMultiDFUPeripheralDelegate <RTKDFUPeripheralDelegate>
@optional
- (void)DFUPeripheral:(RTKMultiDFUPeripheral *)peripheral willSendImage:(RTKOTAUpgradeBin *)image;
- (void)DFUPeripheral:(RTKMultiDFUPeripheral *)peripheral didSendImage:(RTKOTAUpgradeBin *)image;
- (void)DFUPeripheral:(RTKMultiDFUPeripheral *)peripheral didActiveImages:(NSArray<RTKOTAUpgradeBin*>*)images;
@end
@interface RTKMultiDFUPeripheral : RTKDFUPeripheral
@property (nonatomic, weak) id <RTKMultiDFUPeripheralDelegate> delegate;
@property (readonly, nullable) NSArray <RTKOTAUpgradeBin*> *upgradeImages;
- (void)upgradeImages:(NSArray <RTKOTAUpgradeBin*> *)images inOTAMode:(BOOL)yesOrNo;
- (void)setReconnectTimeForSilent:(NSTimeInterval)timeout;
@end
NS_ASSUME_NONNULL_END