From aba0b634403fc9f539b3bb864a6e41a8dfef9d8e Mon Sep 17 00:00:00 2001 From: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com> Date: Fri, 8 Nov 2024 15:33:13 -0700 Subject: [PATCH] Add customizeable websocket port Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com> --- MAVProxy/modules/mavproxy_console.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/MAVProxy/modules/mavproxy_console.py b/MAVProxy/modules/mavproxy_console.py index 1ed9f51fd1..d8ba9e63dd 100644 --- a/MAVProxy/modules/mavproxy_console.py +++ b/MAVProxy/modules/mavproxy_console.py @@ -103,7 +103,14 @@ def __init__(self, mpstate): except ImportError: pass else: - mavproxy_items.append(MPMenuItem('Start Websocket Server', 'Start Websocket Server', '# output add wsserver:0.0.0.0:5863')) + mavproxy_items.append( + MPMenuItem('Start Websocket Server', + 'Start Websocket Server', + '# output add wsserver:0.0.0.0:', + handler=MPMenuCallTextDialog( + title='Websocket Port', + default=5863 + ))) self.add_menu(MPMenuSubMenu('MAVProxy', items=mavproxy_items))