code: def setChannel(self, channel=11):
          
          print '%s call setChannel' % self.port
          print channel
          try:
              cmd = 'channel %s' % channel
              datasetCmd = 'dataset channel %s' % channel
              self.hasActiveDatasetToCommit = True
              return self.__sendCommand(cmd)[0] == 'Done' and self.__sendCommand(datasetCmd)[0] == 'Done'
          except Exception, e:
              ModuleHelper.WriteIntoDebugLogger("setChannel() Error: " + str(e))
docs: 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