platypush/plugins/esp/__init__.py
def wifi_config(self, ip: Optional[str] = None, netmask: Optional[str] = None,
                    gateway: Optional[str] = None, dns: Optional[str] = None, **kwargs) \
            -> Optional[EspWifiConfigResult]:
        """
        Get or set network properties for the WiFi 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 kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.execute`.
        """
        if ip or netmask or gateway or dns:
            self.net_ifconfig(net_type='network.STA_IF', ip=ip, netmask=netmask, gateway=gateway, dns=dns, **kwargs)
            return

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

        Get or set network properties for the WiFi 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 kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.execute`.
        
Get or set network properties for the WiFi interface.
If called with no arguments it will return the configuration of the interface.
Get or set network properties for the WiFi interface . If called with no arguments it will return the configuration of the interface .
def wifi_config(self, ip: Optional[str] = None, netmask: Optional[str] = None,
                    gateway: Optional[str] = None, dns: Optional[str] = None, **kwargs) \
            -> Optional[EspWifiConfigResult]:
        if ip or netmask or gateway or dns:
            self.net_ifconfig(net_type='network.STA_IF', ip=ip, netmask=netmask, gateway=gateway, dns=dns, **kwargs)
            return
        return self.net_config('network.STA_IF', **kwargs)
def wifi_config ( self , ip : Optional [ str ] = None , netmask : Optional [ str ] = None , gateway : Optional [ str ] = None , dns : Optional [ str ] = None , ** kwargs ) -> Optional [ EspWifiConfigResult ] : if ip or netmask or gateway or dns : self . net_ifconfig ( net_type = 'network.STA_IF' , ip = ip , netmask = netmask , gateway = gateway , dns = dns , ** kwargs ) return return self . net_config ( 'network.STA_IF' , ** kwargs )
Get or set network properties for the WiFi interface.
Get or set network properties for the WiFi interface .
"""
        Get or set network properties for the WiFi 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 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 .
kwargs
Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.execute`.
Parameters to pass to : meth : ` platypush . plugins . esp . EspPlugin . execute ` .