1
wei
2021-01-21 62d098cb78296feaa6f786a20748921338db838c
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
//
// TuyaSmartBLEManager+Channel.h
// TuyaSmartBLEKit
//
// Copyright (c) 2014-2021 Tuya Inc. (https://developer.tuya.com)
 
#import <Foundation/Foundation.h>
#import "TuyaSmartBLEManager.h"
 
NS_ASSUME_NONNULL_BEGIN
 
typedef void (^TPBleResultBlock)(NSString *result);
 
/// @brief TuyaSmartBLEManager+Channel provides methods for developers to make BLE device report large amounts of data through bluetooth channel.
@interface TuyaSmartBLEManager (Channel)
 
/// Determine if the device is connected.
///
/// @param uuid     The UUID for the device.
///
/// @return The local connection status of the BLE device
- (BOOL)isBLEChannelDeviceConnect:(NSString *)uuid;
 
/// Set the callback when the transfer is completed.
///
/// @param block    When transfer successfully, this block will be called success.
/// @param uuid     The UUID for the device.
- (void)setCompletionBlock:(TPBleResultBlock)block uuid:(NSString *)uuid;
 
/// App request to start big data transfer.
///
/// @param uuid     The UUID for the device.
- (void)appApplyLaunch:(NSString *)uuid;
 
/// App forced termination of data transmission.
///
/// @param uuid     The UUID for the device.
- (BOOL)appMandatoryTrans:(NSString *)uuid;
 
@end
 
NS_ASSUME_NONNULL_END