Package com.diozero.sbc
Class LocalBoardInfoUtil
- java.lang.Object
-
- com.diozero.sbc.LocalBoardInfoUtil
-
public class LocalBoardInfoUtil extends Object
Utility class for accessing information for the local board that the application is executing on. Access to board info should typically done by calling
getBoardInfo()
on theautomatically discovered
native device factory
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 Summary
Constructors Constructor Description LocalBoardInfoUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BoardInfo
lookupLocalBoardInfo()
Returns information for the local device only.
-
-
-
Method Detail
-
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.
-
-