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.

47 lines
992 B

//
// JL_Handle.h
// JL_BLEKit
//
// Created by zhihui liang on 2018/11/10.
// Copyright © 2018 www.zh-jieli.com. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <JL_BLEKit/JL_FlashOperateManager.h>
#import <JL_BLEKit/JL_BLEAction.h>
#import <JL_BLEKit/JL_RCSP.h>
NS_ASSUME_NONNULL_BEGIN
/**
* XM_PKG的回调
*/
extern NSString *kJL_CMD_RECEIVE; //XM_RCSP【接收】
@protocol JL_HandleDelegate <NSObject>
@optional
-(void)onHandleOutputPKG:(JL_PKG*)pkg;
@end
@interface JL_Handle : NSObject
@property(nonatomic,weak)id<JL_HandleDelegate>delegate;
/**
BLE数据
@param data
*/
-(void)inputHandleData:(NSData*)data;
/**[实例]
JL_PKG数据包
@param pkg JL_PKG数据模型
@param name
*/
-(NSData*)sendPackage:(JL_PKG*)pkg WithName:(NSString*)name;
+(void)logPackage:(JL_PKG*)pkg WithName:(NSString *__nullable)name IsSend:(BOOL)isSend;
@end
NS_ASSUME_NONNULL_END