Skip to content

Commit cba8beb

Browse files
committed
Make the upload monitor enablement configurable
1 parent 803fc4c commit cba8beb

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

IoTSonnenUploader/config-sample/mqtt.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
mqtt:
2+
monitoruploads:
3+
enabled: true
24
device:
35
id: tims
46
broker:

IoTSonnenUploader/src/main/java/com/oracle/demo/timg/iot/iotsonnenuploader/mqtt/MqttUploadMonitor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Software and the Larger Work(s), and to sublicense the foregoing rights on
4747
@Log
4848
@MqttSubscriber
4949
@Requires(property = MqttDeviceSettings.PREFIX + ".id")
50+
@Requires(property = "mqtt.monitoruploads.enabled", value = "true", defaultValue = "false")
5051
public class MqttUploadMonitor {
5152
@Topic("house/sonnen/configuration/${" + MqttDeviceSettings.PREFIX + ".id}")
5253
public void receiveConfig(SonnenConfiguration config) {

0 commit comments

Comments
 (0)