Package com.pi4j.io.w1
Class W1BaseDevice
- java.lang.Object
-
- com.pi4j.io.w1.W1BaseDevice
-
-
Constructor Summary
Constructors Constructor Description W1BaseDevice(File deviceDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
W1Device should be considered equal based on their IDString
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()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.pi4j.io.w1.W1Device
getFamilyId
-
-
-
-
Constructor Detail
-
W1BaseDevice
public W1BaseDevice(File deviceDir)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:W1Device
Returns a human readable name.
-
getId
public String getId()
Description copied from interface:W1Device
Returns the name (id/serial number) of the device e.g. 28-00000698ebb1.
-
equals
public boolean equals(Object obj)
Description copied from interface:W1Device
W1Device should be considered equal based on their ID
-
hashCode
public int hashCode()
-
getValue
public String getValue() throws IOException
Description copied from interface:W1Device
Gets the current Value = content of w1_slave file- Specified by:
getValue
in interfaceW1Device
- Returns:
- Throws:
IOException
-
-