Skip to content

Commit

Permalink
Add customizeable websocket port
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 committed Nov 8, 2024
1 parent df53abb commit aba0b63
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion MAVProxy/modules/mavproxy_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit aba0b63

Please sign in to comment.