code: def setmonitor(self, enable=True):
          
          # We must reset the monitor cache
          if enable:
              res = self.setmode('monitor')
          else:
              res = self.setmode('managed')
          if not res:
              log_runtime.error("Npcap WlanHelper returned with an error code !")
          self.cache_mode = None
          tmp = self.cache_mode = self.ismonitor()
          return tmp if enable else (not tmp)
docs: Alias for setmode('monitor') or setmode('managed')
          Only available with Npcap