from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class IpvFourCls:
"""IpvFour commands group definition. 8 total commands, 1 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("ipvFour", core, parent)
@property
def static(self):
"""static commands group. 2 Sub-classes, 0 commands."""
if not hasattr(self, '_static'):
from .Static import StaticCls
self._static = StaticCls(self._core, self._cmd_group)
return self._static
[docs]
def get_dhcp(self) -> bool:
"""SCPI: CONFigure:WLAN:SIGNaling<instance>:IPVFour:DHCP \n
Snippet: value: bool = driver.configure.ipvFour.get_dhcp() \n
Enables or disables the built-in DHCP server. The setting is relevant for station mode, with or without a DAU.
This setting is not relevant for AP mode. \n
:return: activate: OFF | ON
"""
response = self._core.io.query_str('CONFigure:WLAN:SIGNaling<Instance>:IPVFour:DHCP?')
return Conversions.str_to_bool(response)
[docs]
def set_dhcp(self, activate: bool) -> None:
"""SCPI: CONFigure:WLAN:SIGNaling<instance>:IPVFour:DHCP \n
Snippet: driver.configure.ipvFour.set_dhcp(activate = False) \n
Enables or disables the built-in DHCP server. The setting is relevant for station mode, with or without a DAU.
This setting is not relevant for AP mode. \n
:param activate: OFF | ON
"""
param = Conversions.bool_to_str(activate)
self._core.io.write(f'CONFigure:WLAN:SIGNaling<Instance>:IPVFour:DHCP {param}')
def clone(self) -> 'IpvFourCls':
"""Clones the group by creating new object from it and its whole existing subgroups
Also copies all the existing default Repeated Capabilities setting,
which you can change independently without affecting the original group"""
new_group = IpvFourCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group