You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
641 B

3 years ago
namespace EC.AutoWeightServer.IfManager.Light
{
public interface ILightRelay
{
/// <summary>
/// 连接设备
/// </summary>
/// <returns></returns>
bool StartServer();
/// <summary>
/// 断开设备
/// </summary>
/// <returns></returns>
bool StopServer();
/// <summary>
/// 是否连接设备
/// </summary>
/// <returns></returns>
bool IsOpen();
/// <summary>
/// 发送 Ascii 编码
/// </summary>
/// <param name="text"></param>
bool SendAscii(string text);
/// <summary>
/// 发送 16进制 编码
/// </summary>
/// <param name="text"></param>
bool SendHex(string text);
}
}