mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-15 04:15:28 +03:00
BLE, TCP and UDP Support
This commit is contained in:
parent
1322fd69bd
commit
ab7162980b
24 changed files with 1190 additions and 387 deletions
|
@ -21,10 +21,11 @@ function startApplication() {
|
|||
createdWindow.onClosed.addListener(function () {
|
||||
// automatically close the port when application closes
|
||||
// save connectionId in separate variable before createdWindow.contentWindow is destroyed
|
||||
var connectionId = createdWindow.contentWindow.serial.connectionId,
|
||||
var connectionId = createdWindow.contentWindow.CONFIGURATOR.connection.connectionId,
|
||||
valid_connection = createdWindow.contentWindow.CONFIGURATOR.connectionValid,
|
||||
mincommand = createdWindow.contentWindow.MISC.mincommand;
|
||||
|
||||
console.log("EP:" + connectionId);
|
||||
if (connectionId && valid_connection) {
|
||||
// code below is handmade MSP message (without pretty JS wrapper), it behaves exactly like MSP.send_message
|
||||
// sending exit command just in case the cli tab was open.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue