Skip to content

Commit d1b1bb8

Browse files
author
Thijs
committed
ssdpBridge: broadcast notifies, disable debug prints
AVR Remote doesn't see the device unless the notifies are broadcast to the client. This is probably due to some other logic being incorrect.
1 parent dc8c746 commit d1b1bb8

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

lib/network/ssdpBridge.cc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <Denon/network/ssdpBridge.h>
22

3-
#define DEBUG_LVL 1
3+
//#define DEBUG_LVL 2
44
#ifdef DEBUG_LVL
55
#include <iostream>
66
#endif
@@ -73,8 +73,10 @@ void Bridge::OnReceiveFromServer(boost::asio::ip::address_v4 sender, const std::
7373
m_cache.services[key] = *pNotify;
7474
}
7575

76-
//std::cout << "Server: Notify -> client\n";
77-
//m_Client.send(data);
76+
#if DEBUG_LVL > 0
77+
std::cout << "Server: Notify -> client\n";
78+
#endif
79+
m_Client.broadcast(data);
7880
}
7981
else if(auto pResponse = std::get_if<Ssdp::Response>(&sn))
8082
{

0 commit comments

Comments
 (0)