using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DeviceService.Core.Api { public interface IModbusDriver { bool Open(out string msg); bool Close(out string msg); bool ReadBytes(string address, int length, out byte[] data, out string msg); bool WriteBytes(string address, byte[] data, out string msg); } }