Package com.pi4j.io.w1
Interface W1Device
-
- All Known Implementing Classes:
W1BaseDevice
public interface W1Device- Author:
- Peter Schuebl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(Object obj)W1Device should be considered equal based on their IDintgetFamilyId()Returns the type/family of the device.StringgetId()Returns the name (id/serial number) of the device e.g.StringgetName()Returns a human readable name.StringgetValue()Gets the current Value = content of w1_slave fileinthashCode()
-
-
-
Method Detail
-
getId
String getId()
Returns the name (id/serial number) of the device e.g. 28-00000698ebb1.- Returns:
- the unique device name.
-
getName
String getName()
Returns a human readable name.- Returns:
- the human readable name, defaults to ID
-
getFamilyId
int getFamilyId()
Returns the type/family of the device.- Returns:
- device type, never null.
-
getValue
String getValue() throws IOException
Gets the current Value = content of w1_slave file- Returns:
- Throws:
IOException
-
equals
boolean equals(Object obj)
W1Device should be considered equal based on their ID
-
-