blub
This commit is contained in:
parent
d647e8b215
commit
8030192caf
@ -30,8 +30,9 @@ Radio433::~Radio433()
|
|||||||
void Radio433::sendData(QList<int> rawData)
|
void Radio433::sendData(QList<int> rawData)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
qDebug() << "send 433";
|
||||||
//first we have to disable our receiver, to prevent reading this signal
|
//first we have to disable our receiver, to prevent reading this signal
|
||||||
m_receiver->stop();
|
//m_receiver->stop();
|
||||||
|
|
||||||
m_transmitter->setValue(LOW);
|
m_transmitter->setValue(LOW);
|
||||||
delayMicroseconds(500);
|
delayMicroseconds(500);
|
||||||
@ -44,7 +45,7 @@ void Radio433::sendData(QList<int> rawData)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// re-enable it
|
// re-enable it
|
||||||
m_receiver->start();
|
//m_receiver->start();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -156,6 +156,7 @@ void RfRemoteMumbi::executeAction(Device *device, const Action &action)
|
|||||||
QList<int> rawData;
|
QList<int> rawData;
|
||||||
QByteArray binCode;
|
QByteArray binCode;
|
||||||
|
|
||||||
|
qDebug() << "rawData" << rawData;
|
||||||
// =======================================
|
// =======================================
|
||||||
// create the bincode
|
// create the bincode
|
||||||
// channels
|
// channels
|
||||||
@ -239,6 +240,7 @@ void RfRemoteMumbi::executeAction(Device *device, const Action &action)
|
|||||||
|
|
||||||
// =======================================
|
// =======================================
|
||||||
// send data to driver
|
// send data to driver
|
||||||
|
qDebug() << "rawData" << rawData;
|
||||||
deviceManager()->radio433()->sendData(rawData);
|
deviceManager()->radio433()->sendData(rawData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -4,6 +4,6 @@
|
|||||||
if [ -z $1 ]; then
|
if [ -z $1 ]; then
|
||||||
echo "usage $0 host"
|
echo "usage $0 host"
|
||||||
else
|
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": "{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": "{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
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user