platypush/plugins/esp/__init__.py
def ap_config(self, ip: Optional[str] = None, netmask: Optional[str] = None,
                  gateway: Optional[str] = None, dns: Optional[str] = None, essid: Optional[str] = None,
                  passphrase: Optional[str] = None, channel: Optional[int] = None,
                  hidden: Optional[bool] = None, **kwargs) -> Optional[EspWifiConfigResult]:
        """
        Get or set network properties for the WiFi access point interface.
        If called with no arguments it will return the configuration of the interface.

        :param ip: IP address.
        :param netmask: Netmask.
        :param gateway: Default gateway address.
        :param dns: Default DNS address.
        :param essid: ESSID of the access point.
        :param passphrase: Password/passphrase.
        :param channel: WiFi channel.
        :param hidden: Whether the network is hidden.
        :param kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.execute`.
        """
        has_args = False
        self.execute(code='import network; ap = network.WLAN(network.AP_IF)'.format(essid=essid), **kwargs)

        if ip or netmask or gateway or dns:
            self.net_ifconfig(net_type='network.AP_IF', ip=ip, netmask=netmask, gateway=gateway, dns=dns, **kwargs)
            has_args = True
        if essid:
            self.execute(code='ap.config(essid="{essid}")'.format(essid=essid), **kwargs)
            has_args = True
        if passphrase:
            self.execute(code='ap.config(password="{passphrase}")'.format(passphrase=passphrase), **kwargs)
            has_args = True
        if channel:
            self.execute(code='ap.config(channel={channel})'.format(channel=channel), **kwargs)
            has_args = True
        if hidden is not None:
            self.execute(code='ap.config(hidden={hidden})'.format(hidden=str(hidden)), **kwargs)
            has_args = True

        if has_args:
            return

        return self.net_config('network.AP_IF', **kwargs)

        Get or set network properties for the WiFi access point interface.
        If called with no arguments it will return the configuration of the interface.

        :param ip: IP address.
        :param netmask: Netmask.
        :param gateway: Default gateway address.
        :param dns: Default DNS address.
        :param essid: ESSID of the access point.
        :param passphrase: Password/passphrase.
        :param channel: WiFi channel.
        :param hidden: Whether the network is hidden.
        :param kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.execute`.
        
Get or set network properties for the WiFi access point interface.
If called with no arguments it will return the configuration of the interface.
Get or set network properties for the WiFi access point interface . If called with no arguments it will return the configuration of the interface .
def ap_config(self, ip: Optional[str] = None, netmask: Optional[str] = None,
                  gateway: Optional[str] = None, dns: Optional[str] = None, essid: Optional[str] = None,
                  passphrase: Optional[str] = None, channel: Optional[int] = None,
                  hidden: Optional[bool] = None, **kwargs) -> Optional[EspWifiConfigResult]:
        has_args = False
        self.execute(code='import network; ap = network.WLAN(network.AP_IF)'.format(essid=essid), **kwargs)
        if ip or netmask or gateway or dns:
            self.net_ifconfig(net_type='network.AP_IF', ip=ip, netmask=netmask, gateway=gateway, dns=dns, **kwargs)
            has_args = True
        if essid:
            self.execute(code='ap.config(essid="{essid}")'.format(essid=essid), **kwargs)
            has_args = True
        if passphrase:
            self.execute(code='ap.config(password="{passphrase}")'.format(passphrase=passphrase), **kwargs)
            has_args = True
        if channel:
            self.execute(code='ap.config(channel={channel})'.format(channel=channel), **kwargs)
            has_args = True
        if hidden is not None:
            self.execute(code='ap.config(hidden={hidden})'.format(hidden=str(hidden)), **kwargs)
            has_args = True
        if has_args:
            return
        return self.net_config('network.AP_IF', **kwargs)
def ap_config ( self , ip : Optional [ str ] = None , netmask : Optional [ str ] = None , gateway : Optional [ str ] = None , dns : Optional [ str ] = None , essid : Optional [ str ] = None , passphrase : Optional [ str ] = None , channel : Optional [ int ] = None , hidden : Optional [ bool ] = None , ** kwargs ) -> Optional [ EspWifiConfigResult ] : has_args = False self . execute ( code = 'import network; ap = network.WLAN(network.AP_IF)' . format ( essid = essid ) , ** kwargs ) if ip or netmask or gateway or dns : self . net_ifconfig ( net_type = 'network.AP_IF' , ip = ip , netmask = netmask , gateway = gateway , dns = dns , ** kwargs ) has_args = True if essid : self . execute ( code = 'ap.config(essid="{essid}")' . format ( essid = essid ) , ** kwargs ) has_args = True if passphrase : self . execute ( code = 'ap.config(password="{passphrase}")' . format ( passphrase = passphrase ) , ** kwargs ) has_args = True if channel : self . execute ( code = 'ap.config(channel={channel})' . format ( channel = channel ) , ** kwargs ) has_args = True if hidden is not None : self . execute ( code = 'ap.config(hidden={hidden})' . format ( hidden = str ( hidden ) ) , ** kwargs ) has_args = True if has_args : return return self . net_config ( 'network.AP_IF' , ** kwargs )
Get or set network properties for the WiFi access point interface.
Get or set network properties for the WiFi access point interface .
"""
        Get or set network properties for the WiFi access point interface.
        If called with no arguments it will return the configuration of the interface.

        :param ip: IP address.
        :param netmask: Netmask.
        :param gateway: Default gateway address.
        :param dns: Default DNS address.
        :param essid: ESSID of the access point.
        :param passphrase: Password/passphrase.
        :param channel: WiFi channel.
        :param hidden: Whether the network is hidden.
        :param kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.execute`.
        """
self
ip
Optional[str]
None
netmask
Optional[str]
None
gateway
Optional[str]
Default gateway address.
Default gateway address .
dns
Optional[str]
Default DNS address.
Default DNS address .
essid
Optional[str]
ESSID of the access point.
ESSID of the access point .
passphrase
Optional[str]
None
channel
Optional[int]
None
hidden
Optional[bool]
Whether the network is hidden.
Whether the network is hidden .
kwargs
Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.execute`.
Parameters to pass to : meth : ` platypush . plugins . esp . EspPlugin . execute ` .