public abstract class W1BaseDevice extends Object implements W1Device
| Constructor and Description | 
|---|
W1BaseDevice(File deviceDir)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object obj)
W1Device should be considered equal based on their ID 
 | 
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 file 
 | 
int | 
hashCode()  | 
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetFamilyIdpublic W1BaseDevice(File deviceDir)
public String getName()
W1Devicepublic String getId()
W1Devicepublic boolean equals(Object obj)
W1Devicepublic int hashCode()
public String getValue() throws IOException
W1DevicegetValue in interface W1DeviceIOExceptionCopyright © 2012–2021 Pi4J. All rights reserved.