//
//  EZIoTBLECenterMgr+DevReport.h
//  EZIoTBluetoothSDK
//
//  Created by yuqian on 2023/8/10.
//

#import <EZIoTBluetoothSDK/EZIoTBluetoothSDK.h>

NS_ASSUME_NONNULL_BEGIN

@interface EZIoTBLECenterMgr (DevReport)

/// 上报设备及其MCU版本信息
/// @param deviceSerial 设备序列号
/// @param localIndex localIndex
/// @param devVersion 设备当前版本，EZIoTPeripheral.firmwareVersion
/// @param mcuVersion 设备MCU当前版本，EZIoTPeripheral.mcuFirmwareVersion
/// @param mcuPid 设备MCU Pid，EZIoTPeripheral.mcuPid
/// @param success 成功回调
/// @param failure 失败回调
- (void) reportDevVersion:(NSString *)deviceSerial
               localIndex:(NSUInteger)localIndex
               devVersion:(NSString *)devVersion
               mcuVersion:(NSString *)mcuVersion
                   mcuPid:(NSString *)mcuPid
                  success:(void(^)(void))success
                  failure:(void(^)(NSError *error))failure;

/// 向平台上报同步属性/操作功能点值
/// @param peripheral 外设
/// @param featureInfos 功能点
/// @param cmdType 指令命令类型
/// @param seqNum 指令序列号
- (void)devReportHandle:(EZIoTPeripheral *)peripheral
           featureInfos:(NSArray<EZIoTFeatureLiteConfigParam *> *)featureInfos
                cmdType:(NSUInteger)cmdType
                 seqNum:(NSUInteger)seqNum;

@end

NS_ASSUME_NONNULL_END
