From 73285c4ff23824a699b715f94f6ff617a44a861d Mon Sep 17 00:00:00 2001 From: "R. Aidan Campbell" Date: Thu, 10 Mar 2016 21:38:56 -0500 Subject: [PATCH] fixed pairing function signature. Pairing now somewhat works --- static/js/index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/static/js/index.js b/static/js/index.js index 976d4c6..ed4c946 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -52,12 +52,11 @@ function pairPushed() { var e = $("#selectHost")[0]; target = e.options[e.selectedIndex].value; } - api = new NvHTTP(target, guuid()); console.log("Attempting to pair to: " + target); - sendMessage('httpInit', [pairingCert.cert, pairingCert.privateKey]).then(function (ret) { - sendMessage('pair', [pairingCert.cert, "1233"]).then(function (ret2) { + sendMessage('httpInit', [pairingCert.cert, pairingCert.privateKey, guuid()]).then(function (ret) { + sendMessage('pair', [target, "1233"]).then(function (ret2) { console.log("pair attempt to to " + target + " has returned."); - console.log("pairing attempt returned " + ret2) + console.log("pairing attempt returned: " + ret2) }) }); }