Lights, Doc, Db
- Now lights works with DialogFlow - Database automatically update data from user's fitbit - Doc is written well (well.. it is ok) - Added logging here and there - Removed unused code - Improved code reading and code quality
This commit is contained in:
@@ -11,10 +11,6 @@ import support.ZWaySimpleCallback;
|
||||
*/
|
||||
public class Sensor {
|
||||
|
||||
/* todo ma serve il LOGGER?
|
||||
private Logger logger = LoggerFactory.getLogger(Sensor.class);
|
||||
*/
|
||||
|
||||
/**
|
||||
* IP del sensore a cui ci si vuole agganciare
|
||||
*/
|
||||
@@ -100,7 +96,8 @@ public class Sensor {
|
||||
device.update();
|
||||
wait(timeout);
|
||||
}
|
||||
/*public boolean IsLowLuminescence(int Luminescence) {
|
||||
/*
|
||||
public boolean IsLowLuminescence(int Luminescence) {
|
||||
if (dev.getProbeType().equalsIgnoreCase("Luminescence"))
|
||||
if (Integer.parseInt(dev.getMetrics().getLevel()) < Luminescence)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user