From 94e40f40c8bf7d2168dbb4be6de52a9f39454bd9 Mon Sep 17 00:00:00 2001 From: blue chen Date: Tue, 29 Dec 2015 14:58:38 +0800 Subject: [PATCH] bugfix for mcs.js (zh-CN) --- content/zh-CN/tutorial/7688_led_tutorial.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/zh-CN/tutorial/7688_led_tutorial.md b/content/zh-CN/tutorial/7688_led_tutorial.md index 9f362fb..a70aecc 100644 --- a/content/zh-CN/tutorial/7688_led_tutorial.md +++ b/content/zh-CN/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’); + } }); ```