This bridges the Mission Planner client app to target device.
- Obtain an auth token and domain at https://ngrok.io.
- Create a
.envfile withNGROK_AUTHTOKENandDOMAIN. - Run
python3 proxy.py --to-http :9001. - Open your ngrok URL in a browser.
Running python3 proxy.py with no options will start a proxy from /tcp requests to localhost:12346; you may change this with the --tcp flag.
Running with the --to-http HOST:PORT flag will additionally start a proxy to the specified address via HTTP.
The proxy listens on localhost:9000 by default, and forwards through the given ngrok domain. Ngrok is used because the web app (mpui) requires https.