public class NfcTouch extends SmartThing {
// id, label, and display name of the device
- StringBuilder id = new StringBuilder()
- StringBuilder label = new StringBuilder()
- StringBuilder displayName = new StringBuilder()
+ String id
+ String label
+ String displayName
NfcTouch(Closure sendEvent) {
idSmartThing = id
sendEventSmartThings = sendEvent
// Initialization
- id.append("nfcSensorID0")
- label.append("nfcSensor")
- displayName.append("nfcSensor0")
+ id = "nfcSensorID0"
+ label = "nfcSensor"
+ displayName = "nfcSensor"
}
}