parameters: (self, channel=11)
return_statement: return self.__executeCommand(cmd)[-1] == 'Done' and self.__executeCommand(datasetCmd)[-1] == 'Done'
docstring: set channel of Thread device operates on.
  
          Args:
              channel:
                      (0  - 10: Reserved)
                      (11 - 26: 2.4GHz channels)
                      (27 - 65535: Reserved)
  
          Returns:
              True: successful to set the channel
              False: fail to set the channel
docstring_summary: set channel of Thread device operates on.
docstring_tokens: set channel of Thread device operates on .
function: def setChannel(self, channel=11):
          """set channel of Thread device operates on.
  
          Args:
              channel:
                      (0  - 10: Reserved)
                      (11 - 26: 2.4GHz channels)
                      (27 - 65535: Reserved)
  
          Returns:
              True: successful to set the channel
              False: fail to set the channel
          """
          print('%s call setChannel' % self)
          print(channel)
          cmd = 'channel %s' % channel
          datasetCmd = 'dataset channel %s' % channel
          self.hasSetChannel = True
          self.hasActiveDatasetToCommit = True
          return self.__executeCommand(cmd)[-1] == 'Done' and self.__executeCommand(datasetCmd)[-1] == 'Done'
function_tokens: def setChannel ( self , channel = 11 ) : print ( '%s call setChannel' % self ) print ( channel ) cmd = 'channel %s' % channel datasetCmd = 'dataset channel %s' % channel self . hasSetChannel = True self . hasActiveDatasetToCommit = True return self . __executeCommand ( cmd ) [ - 1 ] == 'Done' and self . __executeCommand ( datasetCmd ) [ - 1 ] == 'Done'