From c6dc195f8e5141b3b516d93bf157c8a1a13f178a Mon Sep 17 00:00:00 2001 From: Robin Davies Date: Sat, 7 May 2022 00:08:06 -0400 Subject: [PATCH] P2P+mDNS experiment --- src/BeastServer.cpp | 2 +- src/PiPedalModel.hpp | 2 ++ src/templates/pipedal_p2pd.conf.template | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/BeastServer.cpp b/src/BeastServer.cpp index 2e85333..7b66723 100644 --- a/src/BeastServer.cpp +++ b/src/BeastServer.cpp @@ -29,7 +29,7 @@ using namespace pipedal; using namespace std; -const bool ENABLE_KEEP_ALIVE = false; +const bool ENABLE_KEEP_ALIVE = true; using tcp = boost::asio::ip::tcp; // from diff --git a/src/PiPedalModel.hpp b/src/PiPedalModel.hpp index fc82f59..a76d314 100644 --- a/src/PiPedalModel.hpp +++ b/src/PiPedalModel.hpp @@ -36,6 +36,7 @@ #include "WifiDirectConfigSettings.hpp" #include "AdminClient.hpp" #include "AvahiService.hpp" +#include @@ -73,6 +74,7 @@ public: class PiPedalModel: private IJackHostCallbacks { private: + std::unique_ptr pingThread; AvahiService avahiService; uint16_t webPort; diff --git a/src/templates/pipedal_p2pd.conf.template b/src/templates/pipedal_p2pd.conf.template index 5c7bdb2..9253a1f 100644 --- a/src/templates/pipedal_p2pd.conf.template +++ b/src/templates/pipedal_p2pd.conf.template @@ -30,7 +30,7 @@ p2p_device_type=1-0050F204-1 # Wi-Fi configuration wlanInterface=wlan0 p2pInterface=p2p-dev-wlan0 -p2p_go_ht40=0 +p2p_go_ht40=1 p2p_go_vht=0 p2p_go_he=0