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’); + } }); ```