Change update DataPoints by a subscription way
This commit is contained in:
@@ -56,6 +56,9 @@ public class DatabaseConnector implements DataPointListener {
|
||||
if (bucket == null){
|
||||
bucket = properties.getProperty("BUCKET");
|
||||
}
|
||||
|
||||
// Subscribe to the update of DataPoints
|
||||
DataPointListener.subscribeUpdate(this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user