test connections

pull/1/head
Simon Stürz 2013-12-31 03:10:11 +01:00
parent d81a003696
commit 04c8812809
3 changed files with 4 additions and 2 deletions

View File

@ -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 &params)

View File

@ -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

View File

@ -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