You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.3 KiB
50 lines
1.3 KiB
1 year ago
|
//
|
||
|
// JLDeviceConfig.h
|
||
|
// JL_BLEKit
|
||
|
//
|
||
|
// Created by EzioChan on 2022/10/31.
|
||
|
// Copyright © 2022 www.zh-jieli.com. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "ECOneToMorePtl.h"
|
||
|
#import "JLDeviceConfigFuncModel.h"
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
typedef void(^JLConfigRsp)(JL_CMDStatus status, uint8_t sn, JLDeviceConfigModel* __nullable config);
|
||
|
|
||
|
/// 固件设置配置回调协议
|
||
|
/// 遵循时,可通过父类的- (void)addDelegate:(id)delegate方法添加遵循
|
||
|
@protocol JLConfigPtl <NSObject>
|
||
|
|
||
|
/// 监听回调协议
|
||
|
/// - Parameter configModel: 固件设置配置回调
|
||
|
-(void)deviceConfigWith:(JLDeviceConfigModel *)configModel;
|
||
|
|
||
|
@end
|
||
|
|
||
|
@interface JLDeviceConfig : ECOneToMorePtl
|
||
|
|
||
|
|
||
|
|
||
|
+(instancetype)share;
|
||
|
|
||
|
/// 查询设备当前固件配置内容
|
||
|
/// - Parameters:
|
||
|
/// - manager: manager
|
||
|
/// - result: 回调功能配置内容
|
||
|
-(void)deviceGetConfig:(JL_ManagerM *)manager result:(JLConfigRsp)result;
|
||
|
|
||
|
/// 多设备管理时,可通过对应的设备UUID 获取相关的设备配置
|
||
|
/// - Parameter entity: 设备uuidStr
|
||
|
-(JLDeviceConfigModel *)deviceGetConfigWithUUID:(NSString *)uuidStr;
|
||
|
|
||
|
|
||
|
/// 私有测试接口请勿使用
|
||
|
/// - Parameter data: 用于测试数据
|
||
|
/// - Parameter st: 是否开启测试模式
|
||
|
-(void)pDeviceTest:(NSData *)data Status:(BOOL)st;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|