Skip to content
Snippets Groups Projects
Commit ac7eba87 authored by rswindell's avatar rswindell
Browse files

3 new BinkP properties:

.remote_operator (the value of the 'ZYZ' message, if received)
.remote_capabilities (the value of the 'NDL' message, if received)
.remote_info[], an associative array of any/all *other* M_NUL BinkP
 commands/messages (e.g. bp.remote_info['TIME'] contains the remote TIME
 message arguments, if such a message was received).
parent b07f3edf
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,9 @@ function BinkP(name_ver, inbound, rx_callback, tx_callback)
this.out_keys = undefined;
this.capabilities = '115200,TCP,BINKP';
this.remote_ver = undefined;
this.remote_operator = undefined;
this.remote_capabilities = undefined;
this.remote_info = {};
this.sent_files = [];
this.failed_sent_files = [];
......@@ -1193,6 +1196,16 @@ BinkP.prototype.recvFrame = function(timeout)
}
}
}
break;
case 'ZYZ':
this.remote_operator = args.slice(1).join(' ');
break;
case 'NDL':
this.remote_capabilities = args.slice(1).join(' ');
break;
default:
this.remote_info[args[0]] = args.slice(1).join(' ');
break;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment