From bc2354ca193840ca1de0f892c4ea412e804faa3c Mon Sep 17 00:00:00 2001 From: brooss Date: Tue, 14 Feb 2017 12:56:43 +1100 Subject: [PATCH] Pairing type mismatch for serverMajorVersion In main.c the serverMajorVersion parameter is decoded as a string, so Javascript side should pass as string. --- static/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/utils.js b/static/js/utils.js index f5c9f9d..c9d1fd6 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -466,7 +466,7 @@ NvHTTP.prototype = { if (this.currentGame != 0) return false; - return sendMessage('pair', [this.serverMajorVersion, this.address, randomNumber]).then(function (pairStatus) { + return sendMessage('pair', [this.serverMajorVersion.toString(), this.address, randomNumber]).then(function (pairStatus) { return sendMessage('openUrl', [this._baseUrlHttps + '/pair?uniqueid=' + this.clientUid + '&devicename=roth&updateState=1&phrase=pairchallenge', false]).then(function (ret) { $xml = this._parseXML(ret); this.paired = $xml.find('paired').html() == "1";