package com.dcs.equipment.service;

import com.dcs.equipment.domain.DeviceRequest;
import com.dcs.equipment.domain.DeviceResponse;
import com.intelligt.modbus.jlibmodbus.exception.ModbusIOException;
import com.intelligt.modbus.jlibmodbus.exception.ModbusNumberException;
import com.intelligt.modbus.jlibmodbus.exception.ModbusProtocolException;

import java.util.List;
import java.util.Map;

/**
 * @author: LaFantasque
 * @date: 2025-06-30 22:05
 */
public interface DeviceService {

    void updateEquipmentCodes();

    List<Object> getValues(DeviceRequest request) throws ModbusProtocolException, ModbusNumberException, ModbusIOException;

    Map<String, List<DeviceResponse>> getResponseMapByDeviceRequests(List<DeviceRequest> requests);
}
