//
//  S1UdpNetConfig.h
//  PrinterSDK
//
//  Created by ldc on 2025/6/18.
//  Copyright © 2025 Mellow. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <RYCommunication/RYUDPBrowser.h>
#import <RYCommunication/base.h>
#import <PrinterSDK/S1Type.h>
#import <PrinterSDK/S1LanBrowser.h>

NS_ASSUME_NONNULL_BEGIN

/// UDP配网类
@interface S1UdpNetConfig : S1LanBrowser

/// UDP配网实例
+ (instancetype)share __attribute__((deprecated("deprecated")));

/// Wi-Fi配置AP
/// - Parameters:
///   - target: 目标设备
///   - config: AP配置
///   - completeBlock: 结果回调
- (void)setWifiApConfig:(S1UdpLanTarget *)target
                 config:(S1WifiAPConfig *)config
               complete:(RYEmptyResultBlock)completeBlock;

/// Wi-Fi配置STA
/// - Parameters:
///   - target: 目标设备
///   - config: STA配置
///   - completeBlock: 结果回调
- (void)setWifiStaConfig:(S1UdpLanTarget *)target
                  config:(S1WifiSTAConfig *)config
                complete:(RYEmptyResultBlock)completeBlock;

/// 配置以太网
/// - Parameters:
///   - target: 目标设备
///   - config: 以太网配置
///   - completeBlock: 结果回调
- (void)setEthernetConfig:(S1UdpLanTarget *)target
                   config:(S1EthernetConfig *)config
                 complete:(RYEmptyResultBlock)completeBlock;

@end

NS_ASSUME_NONNULL_END
