From 4b47f248584b8b3c47208422a00863b74e40c98e Mon Sep 17 00:00:00 2001 From: Thibault Guittet Date: Tue, 2 Apr 2019 18:38:41 +0200 Subject: [PATCH] Correct typo preventing connection When attempting a connection using the `connect()` function of `ws-client.js`, the following message was sent to `ws-slave.js` which provoked a crash: ``` ws -> message: {"action":"connect","perihperalId":"70********2c"} ``` --- lib/ws-client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ws-client.js b/lib/ws-client.js index 6aaf990..7b745d6 100644 --- a/lib/ws-client.js +++ b/lib/ws-client.js @@ -190,7 +190,7 @@ wsClient.prototype.stopScanning = function(){ wsClient.prototype.connect = function(peripheralId){ this.sendAction({ action : 'connect', - perihperalId : peripheralId + peripheralId : peripheralId }) } @@ -317,4 +317,4 @@ wsClient.prototype.getMac = function(callback) { } } -module.exports = new wsClient(); \ No newline at end of file +module.exports = new wsClient();