HKC/DM_Weight/Port/MyBaseMessage.cs

27 lines
669 B
C#
Raw Normal View History

2024-12-16 16:44:02 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM_Weight.Port
{
public class MyBaseMessage
{
public int addr { get; set; } = 1;
public short lockNo { get; set; }
2024-12-27 14:58:08 +08:00
public short delay { get; set; } = 2;
2024-12-16 16:44:02 +08:00
public int functionCode { get; set; } = 6;
public MyBaseMessage() { }
2024-12-27 14:58:08 +08:00
public MyBaseMessage(short lockNo, int addr = 1, short delay = 2, int functionCode = 6)
2024-12-16 16:44:02 +08:00
{
this.addr = addr;
this.lockNo = lockNo;
this.delay = delay;
this.functionCode = functionCode;
}
}
}