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 boolean
equals(Object obj)
W1Device should be considered equal based on their IDint
getFamilyId()
Returns the type/family of the device.String
getId()
Returns the name (id/serial number) of the device e.g.String
getName()
Returns a human readable name.String
getValue()
Gets the current Value = content of w1_slave fileint
hashCode()
-
-
-
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
-
-