From 10e8f0d897f4984767c31cc66b9203073529c72f Mon Sep 17 00:00:00 2001 From: blue chen Date: Tue, 29 Dec 2015 14:57:42 +0800 Subject: [PATCH] bugfix for mcs.js (en) --- content/en/tutorial/7688_led_tutorial.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/en/tutorial/7688_led_tutorial.md b/content/en/tutorial/7688_led_tutorial.md index 48e0899..e4ccd7e 100644 --- a/content/en/tutorial/7688_led_tutorial.md +++ b/content/en/tutorial/7688_led_tutorial.md @@ -92,12 +92,12 @@ var mcs = require('mcsjs'); // Replace the device ID and device Key obtained from your test device // created in MCS. - myApp.on('LED_Control', function(time, data) { - if(Number(data) === 1){ - console.log('blink'); - } else { - Console.log(’off’); - } + myApp.on('LED_Control', function(data, time) { + if(Number(data) === 1){ + console.log('blink'); + } else { + console.log(’off’); + } }); ```