mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-03 06:24:48 -04:00
KiwiSDR: restored disconnect signal with reporting in the GUI
This commit is contained in:
@@ -36,6 +36,8 @@ KiwiSDRWorker::KiwiSDRWorker(SampleSinkFifo* sampleFifo)
|
||||
this, &KiwiSDRWorker::onBinaryMessageReceived);
|
||||
connect(&m_webSocket, QOverload<QAbstractSocket::SocketError>::of(&QWebSocket::error),
|
||||
this, &KiwiSDRWorker::onSocketError);
|
||||
connect(&m_webSocket, &QWebSocket::disconnected,
|
||||
this, &KiwiSDRWorker::onDisconnected);
|
||||
}
|
||||
|
||||
void KiwiSDRWorker::onConnected()
|
||||
@@ -43,6 +45,12 @@ void KiwiSDRWorker::onConnected()
|
||||
m_webSocket.sendTextMessage("SET auth t=kiwi p=#");
|
||||
}
|
||||
|
||||
void KiwiSDRWorker::onDisconnected()
|
||||
{
|
||||
qDebug("KiwiSDRWorker::onDisconnected");
|
||||
emit updateStatus(4);
|
||||
}
|
||||
|
||||
void KiwiSDRWorker::onSocketError(QAbstractSocket::SocketError error)
|
||||
{
|
||||
emit updateStatus(3);
|
||||
|
||||
Reference in New Issue
Block a user