From 61e28471def70e057d45d75a6a29721fe7b1d823 Mon Sep 17 00:00:00 2001 From: ayyoob Date: Fri, 20 Jan 2017 16:27:32 +0530 Subject: [PATCH] fixed connected cup sample issues --- .../transport/mqtt/ConnectedCupMQttTransportHandler.java | 2 +- .../private/config.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/distribution/src/resources/samples/connectedcup/component/agent/src/main/java/org/coffeeking/agent/transport/mqtt/ConnectedCupMQttTransportHandler.java b/modules/distribution/src/resources/samples/connectedcup/component/agent/src/main/java/org/coffeeking/agent/transport/mqtt/ConnectedCupMQttTransportHandler.java index 8804f715..b6aac275 100644 --- a/modules/distribution/src/resources/samples/connectedcup/component/agent/src/main/java/org/coffeeking/agent/transport/mqtt/ConnectedCupMQttTransportHandler.java +++ b/modules/distribution/src/resources/samples/connectedcup/component/agent/src/main/java/org/coffeeking/agent/transport/mqtt/ConnectedCupMQttTransportHandler.java @@ -41,7 +41,7 @@ public class ConnectedCupMQttTransportHandler extends MQTTTransportHandler { private static String publishTopic = "%s/" + DEVICE_TYPE + "/%s"; protected ConnectedCupMQttTransportHandler() { - super(iotServerSubscriber, DEVICE_TYPE, "tcp://localhost:1883", ""); + super(iotServerSubscriber, DEVICE_TYPE, "tcp://localhost:1886", ""); } private ScheduledFuture dataPushServiceHandler; diff --git a/modules/distribution/src/resources/samples/connectedcup/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.type-view/private/config.json b/modules/distribution/src/resources/samples/connectedcup/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.type-view/private/config.json index 685ee7ff..0211f4c0 100644 --- a/modules/distribution/src/resources/samples/connectedcup/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.type-view/private/config.json +++ b/modules/distribution/src/resources/samples/connectedcup/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.type-view/private/config.json @@ -1,6 +1,9 @@ { "deviceType": { "label": "Connected Cup", - "category": "virtual" + "category": "virtual", + "scopes" : [ + "perm:connectedcup:enroll" + ] } } \ No newline at end of file