Connection stability

This commit is contained in:
Robin Davies
2022-05-10 15:24:08 -04:00
parent 9c848b951d
commit f533540719
8 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ You can optionally restrict the addresses on which PiPedal will respond by provi
To configure PiPedal to only accept connections on the Wi-Fi host access point: To configure PiPedal to only accept connections on the Wi-Fi host access point:
sudo pipedalconfig --install --port 172.22.1.1:80 sudo pipedalconfig --install --port 172.23.0.2:80
-------- --------
[<< Command-Line Configuration of PiPedal](CommandLine.md) | [Up](Documentation.md) | [Using LV2 Audio Plugins >>](UsingLv2Plugins.md) [<< Command-Line Configuration of PiPedal](CommandLine.md) | [Up](Documentation.md) | [Using LV2 Audio Plugins >>](UsingLv2Plugins.md)
+1
View File
@@ -1205,6 +1205,7 @@ class PiPedalModelImpl implements PiPedalModel {
let newPedalBoard = pedalBoard.clone(); let newPedalBoard = pedalBoard.clone();
let item = newPedalBoard.getItem(instanceId); let item = newPedalBoard.getItem(instanceId);
let changed = value !== item.isEnabled; let changed = value !== item.isEnabled;
if (changed) { if (changed) {
item.isEnabled = value; item.isEnabled = value;
+1 -1
View File
@@ -611,7 +611,7 @@ const SettingsDialog = withStyles(styles, { withTheme: true })(
<SelectHoverBackground selected={false} showHover={true} /> <SelectHoverBackground selected={false} showHover={true} />
<div style={{ width: "100%" }}> <div style={{ width: "100%" }}>
<Typography className={classes.primaryItem} display="block" variant="body2" color="textPrimary" noWrap> <Typography className={classes.primaryItem} display="block" variant="body2" color="textPrimary" noWrap>
Connect to a difference device</Typography> Connect to a different device</Typography>
<Typography display="block" variant="caption" noWrap color="textSecondary"> <Typography display="block" variant="caption" noWrap color="textSecondary">
</Typography> </Typography>
+1 -1
View File
@@ -349,7 +349,7 @@ const WifiConfigDialog = withStyles(styles, { withTheme: true })(
<DialogContent> <DialogContent>
<Typography className={classes.pgraph} variant="body2" color="textPrimary"> <Typography className={classes.pgraph} variant="body2" color="textPrimary">
Enabling the Wi-Fi hotspot will disable regular Wi-Fi network access on the PiPedal device. Once Enabling the Wi-Fi hotspot will disable regular Wi-Fi network access on the PiPedal device. Once
enabled, connect to the hotspot and launch http://172.24.1.1 or http://{this.state.name}.local to access the PiPedal web app again. enabled, connect to the hotspot and launch http://172.23.0.2 or http://{this.state.name}.local to access the PiPedal web app again.
</Typography> </Typography>
<Typography className={classes.pgraph} variant="body2" color="textPrimary" gutterBottom> <Typography className={classes.pgraph} variant="body2" color="textPrimary" gutterBottom>
Are you sure you want to proceed? Are you sure you want to proceed?
+4
View File
@@ -221,6 +221,7 @@ namespace pipedal
public: public:
~WebSocketSession() ~WebSocketSession()
{ {
Lv2Log::info("WebSocketSession closed.");
} }
using ptr = std::shared_ptr<WebSocketSession>; using ptr = std::shared_ptr<WebSocketSession>;
WebSocketSession(BeastServerImpl *pServer, server::connection_ptr &webSocket) WebSocketSession(BeastServerImpl *pServer, server::connection_ptr &webSocket)
@@ -230,6 +231,8 @@ namespace pipedal
uri requestUri(webSocket->get_uri()->str().c_str()); uri requestUri(webSocket->get_uri()->str().c_str());
fromAddress = SS(webSocket->get_socket().remote_endpoint()); fromAddress = SS(webSocket->get_socket().remote_endpoint());
Lv2Log::info(SS("WebSocketSession opened. (" << fromAddress << ")"));
auto pFactory = pServer->GetSocketFactory(requestUri); auto pFactory = pServer->GetSocketFactory(requestUri);
if (!pFactory) if (!pFactory)
@@ -568,6 +571,7 @@ namespace pipedal
void on_fail(connection_hdl hdl) void on_fail(connection_hdl hdl)
{ {
m_connections.erase(hdl);
} }
void on_close(connection_hdl hdl) void on_close(connection_hdl hdl)
{ {
+1 -1
View File
@@ -436,7 +436,7 @@ void pipedal::SetWifiDirectConfig(const WifiDirectConfigSettings &settings)
// dhcpcd.conf: // dhcpcd.conf:
// ====== // ======
// interface p2p-wlan0-0 // interface p2p-wlan0-0
// static ip_address=172.24.0.1/16 // static ip_address=172.24.0.1/24
// domain_name_server=172.24.0.1 // domain_name_server=172.24.0.1
@@ -9,8 +9,6 @@ ExecStart=${COMMAND} --systemd --log-level debug
Type=notify Type=notify
WorkingDirectory=/var/pipedal WorkingDirectory=/var/pipedal
TimeoutStopSec=5 TimeoutStopSec=5
Restart=always
RestartSec=5
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target