diff --git a/server/hivecore.cpp b/server/hivecore.cpp index 2bb07bd0..5e852715 100644 --- a/server/hivecore.cpp +++ b/server/hivecore.cpp @@ -30,6 +30,8 @@ HiveCore::HiveCore(QObject *parent) : // start the server m_jsonServer = new JsonRPCServer(this); + connect(m_deviceManager,SIGNAL(emitTrigger(QUuid,QVariantMap)),this,SLOT(gotSignal(QUuid,QVariantMap))); + } void HiveCore::gotSignal(const QUuid &triggerId, const QVariantMap ¶ms) diff --git a/tests/addconfigureddevice.sh b/tests/addconfigureddevice.sh index c22cb204..48092f10 100755 --- a/tests/addconfigureddevice.sh +++ b/tests/addconfigureddevice.sh @@ -1,4 +1,4 @@ #!/bin/bash # Creates a Mumbi remote -(echo '{"id":1, "method":"Devices.AddConfiguredDevice", "params":{"deviceClass": "{d85c1ef4-197c-4053-8e40-707aa671d302}", "deviceParams": {"channel1":"true", "channel2":"false", "channel3":"false", "channel4": "false", "channel5":"false" }}}'; sleep 1) | nc localhost 1234 +(echo '{"id":1, "method":"Devices.AddConfiguredDevice", "params":{"deviceClass": "{d85c1ef4-197c-4053-8e40-707aa671d302}", "deviceParams":{"channel1":"false", "channel2":"false", "channel3":"false", "channel4": "false", "channel5":"false" }}}'; sleep 1) | nc 10.10.10.114 1234 diff --git a/tests/getconfigureddevices.sh b/tests/getconfigureddevices.sh index 05b823b0..4ca259f3 100755 --- a/tests/getconfigureddevices.sh +++ b/tests/getconfigureddevices.sh @@ -1,3 +1,3 @@ #!/bin/bash -(echo '{"id":1, "method":"Devices.GetConfiguredDevices"}'; sleep 1) | nc localhost 1234 +(echo '{"id":1, "method":"Devices.GetConfiguredDevices"}'; sleep 1) | nc 10.10.10.114 1234