Skip to content

Commit 252b702

Browse files
authored
Update the data channel ID. (#114)
1 parent da616bb commit 252b702

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

content/en/tutorial/7688_led_tutorial.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,13 @@ The server sends commands in the following format: deviceId, deviceKey, timesta
237237
while True:
238238
command = commandChannel.recv(1024)
239239
logging.info("recv:" + command)
240-
# command can be a response of heart beat or an update of the LED_control,
240+
# command can be a response of heart beat or an update of the LED_Control,
241241
# so we split by ',' and drop device id and device key and check length
242242
fields = command.split(',')[2:]
243243

244244
if len(fields) > 1:
245245
timeStamp, dataChannelId, commandString = fields
246-
if dataChannelId == 'LED_control':
246+
if dataChannelId == 'LED_Control':
247247
# check the value - it's either 0 or 1
248248
commandValue = int(commandString)
249249
logging.info("led :%d" % commandValue)
@@ -312,13 +312,13 @@ def waitAndExecuteCommand(commandChannel):
312312
while True:
313313
command = commandChannel.recv(1024)
314314
logging.info("recv:" + command)
315-
# command can be a response of heart beat or an update of the LED_control,
315+
# command can be a response of heart beat or an update of the LED_Control,
316316
# so we split by ',' and drop device id and device key and check length
317317
fields = command.split(',')[2:]
318318

319319
if len(fields) > 1:
320320
timeStamp, dataChannelId, commandString = fields
321-
if dataChannelId == 'LED_control':
321+
if dataChannelId == 'LED_Control':
322322
# check the value - it's either 0 or 1
323323
commandValue = int(commandString)
324324
logging.info("led :%d" % commandValue)

content/zh-CN/tutorial/7688_led_tutorial.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,13 @@ The server sends commands in the following format: deviceId, deviceKey, timesta
237237
while True:
238238
command = commandChannel.recv(1024)
239239
logging.info("recv:" + command)
240-
# command can be a response of heart beat or an update of the LED_control,
240+
# command can be a response of heart beat or an update of the LED_Control,
241241
# so we split by ',' and drop device id and device key and check length
242242
fields = command.split(',')[2:]
243243

244244
if len(fields) > 1:
245245
timeStamp, dataChannelId, commandString = fields
246-
if dataChannelId == 'LED_control':
246+
if dataChannelId == 'LED_Control':
247247
# check the value - it's either 0 or 1
248248
commandValue = int(commandString)
249249
logging.info("led :%d" % commandValue)
@@ -312,13 +312,13 @@ def waitAndExecuteCommand(commandChannel):
312312
while True:
313313
command = commandChannel.recv(1024)
314314
logging.info("recv:" + command)
315-
# command can be a response of heart beat or an update of the LED_control,
315+
# command can be a response of heart beat or an update of the LED_Control,
316316
# so we split by ',' and drop device id and device key and check length
317317
fields = command.split(',')[2:]
318318

319319
if len(fields) > 1:
320320
timeStamp, dataChannelId, commandString = fields
321-
if dataChannelId == 'LED_control':
321+
if dataChannelId == 'LED_Control':
322322
# check the value - it's either 0 or 1
323323
commandValue = int(commandString)
324324
logging.info("led :%d" % commandValue)

content/zh-TW/tutorial/7688_led_tutorial.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,13 @@ The server sends commands in the following format: deviceId, deviceKey, timesta
237237
while True:
238238
command = commandChannel.recv(1024)
239239
logging.info("recv:" + command)
240-
# command can be a response of heart beat or an update of the LED_control,
240+
# command can be a response of heart beat or an update of the LED_Control,
241241
# so we split by ',' and drop device id and device key and check length
242242
fields = command.split(',')[2:]
243243

244244
if len(fields) > 1:
245245
timeStamp, dataChannelId, commandString = fields
246-
if dataChannelId == 'LED_control':
246+
if dataChannelId == 'LED_Control':
247247
# check the value - it's either 0 or 1
248248
commandValue = int(commandString)
249249
logging.info("led :%d" % commandValue)
@@ -312,13 +312,13 @@ def waitAndExecuteCommand(commandChannel):
312312
while True:
313313
command = commandChannel.recv(1024)
314314
logging.info("recv:" + command)
315-
# command can be a response of heart beat or an update of the LED_control,
315+
# command can be a response of heart beat or an update of the LED_Control,
316316
# so we split by ',' and drop device id and device key and check length
317317
fields = command.split(',')[2:]
318318

319319
if len(fields) > 1:
320320
timeStamp, dataChannelId, commandString = fields
321-
if dataChannelId == 'LED_control':
321+
if dataChannelId == 'LED_Control':
322322
# check the value - it's either 0 or 1
323323
commandValue = int(commandString)
324324
logging.info("led :%d" % commandValue)

0 commit comments

Comments
 (0)