Class SystemInfo

java.lang.Object
com.diozero.util.SystemInfo

public class SystemInfo
extends java.lang.Object

Utility class for accessing information for the system the application is executing on.

Note some boards are accessed remotely (e.g. Firmata protocol and pigpio sockets) hence this information may differ to the actual device you are controlling.

  • Constructor Details

  • Method Details

    • lookupLocalBoardInfo

      public static BoardInfo lookupLocalBoardInfo()
      Returns information for the local device only. Note some providers work over a remote connection - if you want information for the device you are controlling please use:
      DeviceFactoryHelper.getNativeDeviceFactory().getBoardInfo()
      Returns:
      BoardInfo instance describing the local device.
    • getOsReleaseProperty

      public static java.lang.String getOsReleaseProperty​(java.lang.String property)
    • getOperatingSystemId

      public static java.lang.String getOperatingSystemId()
    • getOperatingSystemVersion

      public static java.lang.String getOperatingSystemVersion()
    • getOperatingSystemVersionId

      public static java.lang.String getOperatingSystemVersionId()
    • main

      public static void main​(java.lang.String[] args)