类 DeviceInfo

java.lang.Object
com.darra.ethercat.statics.DeviceInfo

public class DeviceInfo extends Object
设备信息 API 对应 C# Static/DeviceInfo.cs 提供设备序列号、设备名称等获取方法
  • 方法详细资料

    • getSerialNumber

      public static String getSerialNumber()
      获取当前设备的序列号
      返回:
      设备序列号字符串, 获取失败时返回空字符串
    • getDeviceName

      public static String getDeviceName()
      获取设备名称 (优先 DLL, 回退到系统)
      返回:
      设备名称
    • getUserEmail

      public static String getUserEmail()
      获取用户邮箱
      返回:
      邮箱字符串, 获取失败返回空字符串