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 the automatically 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
Modifier and Type Method Description static BoardInfo
lookupLocalBoardInfo()
Returns information for the local device only.
-
Constructor Details
-
LocalBoardInfoUtil
public LocalBoardInfoUtil()
-
-
Method Details
-
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.
-