From dc78885b050b6f79755d9805f5bd5370c71e70b6 Mon Sep 17 00:00:00 2001 From: blue chen Date: Tue, 29 Dec 2015 15:01:10 +0800 Subject: [PATCH] bugfix for mcs.js (zh-TW) --- content/zh-TW/tutorial/7688_led_tutorial.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/zh-TW/tutorial/7688_led_tutorial.md b/content/zh-TW/tutorial/7688_led_tutorial.md index d257a74..2a3e339 100644 --- a/content/zh-TW/tutorial/7688_led_tutorial.md +++ b/content/zh-TW/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’); + } }); ```