diff --git a/libhive/radio433.cpp b/libhive/radio433.cpp index a77c8c33..8c6e8697 100644 --- a/libhive/radio433.cpp +++ b/libhive/radio433.cpp @@ -30,8 +30,9 @@ Radio433::~Radio433() void Radio433::sendData(QList rawData) { + qDebug() << "send 433"; //first we have to disable our receiver, to prevent reading this signal - m_receiver->stop(); + //m_receiver->stop(); m_transmitter->setValue(LOW); delayMicroseconds(500); @@ -44,7 +45,7 @@ void Radio433::sendData(QList rawData) } // re-enable it - m_receiver->start(); + //m_receiver->start(); } diff --git a/plugins/deviceplugins/rfremotemumbi/rfremotemumbi.cpp b/plugins/deviceplugins/rfremotemumbi/rfremotemumbi.cpp index ee6699a8..14ffc105 100644 --- a/plugins/deviceplugins/rfremotemumbi/rfremotemumbi.cpp +++ b/plugins/deviceplugins/rfremotemumbi/rfremotemumbi.cpp @@ -156,6 +156,7 @@ void RfRemoteMumbi::executeAction(Device *device, const Action &action) QList rawData; QByteArray binCode; + qDebug() << "rawData" << rawData; // ======================================= // create the bincode // channels @@ -239,6 +240,7 @@ void RfRemoteMumbi::executeAction(Device *device, const Action &action) // ======================================= // send data to driver + qDebug() << "rawData" << rawData; deviceManager()->radio433()->sendData(rawData); } diff --git a/tests/addconfigureddevice.sh b/tests/addconfigureddevice.sh index 69a17920..13ca9ee5 100755 --- a/tests/addconfigureddevice.sh +++ b/tests/addconfigureddevice.sh @@ -4,6 +4,6 @@ if [ -z $1 ]; then echo "usage $0 host" else -# (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 $1 1234 - (echo '{"id":1, "method":"Devices.AddConfiguredDevice", "params":{"deviceClass": "{308ae6e6-38b3-4b3a-a513-3199da2764f8}","deviceParams":{"channel1":"false","channel2":"false", "channel3":"false", "channel4": "false","channel5":"false","A":"false","B":"true","C":"false","D":"false","E":"false" }}}'; sleep 1) | nc $1 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 $1 1234 +# (echo '{"id":1, "method":"Devices.AddConfiguredDevice", "params":{"deviceClass": "{308ae6e6-38b3-4b3a-a513-3199da2764f8}","deviceParams":{"channel1":"false","channel2":"false", "channel3":"false", "channel4": "false","channel5":"false","A":"false","B":"true","C":"false","D":"false","E":"false" }}}'; sleep 1) | nc $1 1234 fi