using Service.Execute.Model;
namespace Service.Rfid;
public class RfidMgr
{
public static RfidReadWriteTool RfidReadWriteTool;
///
/// 连接
///
///
public static async Task Connected()
{
bool bResult = RfidReadWriteTool.ConnectRfid();
return bResult;
}
///
/// 断开
///
///
public static async Task CloseRfid()
{
bool bResult = RfidReadWriteTool.CloseRfid();
return bResult;
}
///
/// 开始读
///
///
public static bool BeginRead()
{
bool bResult = RfidReadWriteTool.ScanRfidUserDataTag();
return bResult;
}
///
/// 停止读
///
///
public static bool StopRead()
{
bool bResult = RfidReadWriteTool.StopRfidResult();
return bResult;
}
///
/// 读取信息
///
///
public static RfidReadModel? ReadRifd()
{
return RfidReadWriteTool.RfidReadModel;
}
}