//
//  EZIoTLocalAuthMgr.h
//  EZIoTBluetoothSDK
//
//  Created by yuqian on 2023/5/9.
//

#import <Foundation/Foundation.h>
#import "EZIoTBLECommonDefine.h"

NS_ASSUME_NONNULL_BEGIN

@interface EZIoTLocalAuthMgr : NSObject

- (void)startLocalAuthentication:(EZIoTPeripheral *)p callback:(EZIoTBLEDidRecivedAuthStatusBlock)callback;

- (void)sendRandomMsg:(EZIoTPeripheral *)p
                  msg:(NSString *)randomMsg
             callback:(EZIoTBLEUniversalSetResultBlock)callback;

- (int) localAuthHanler:(EZIoTPeripheral *)p
                cmdType:(int)cmdType
                  value:(NSData *)value;

//非首次认证
- (int) localAuthSecondHanler:(EZIoTPeripheral *)p
                cmdType:(int)cmdType
                        value:(NSData *)value;

@end

NS_ASSUME_NONNULL_END
