from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Utilities import trim_str_response
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DeviceCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("device", core, parent)
[docs]
def get_id(self) -> str:
"""
``SCONfiguration:EXTernal:REMote:EDIT:DEVice:[ID]`` \n
Snippet: ``value: str = driver.sconfiguration.external.remote.edit.device.get_id()`` \n
No help available
"""
response = self._core.io.query_str('SCONfiguration:EXTernal:REMote:EDIT:DEVice:ID?')
return trim_str_response(response)
[docs]
def set_id(self, device_id: str) -> None:
"""
``SCONfiguration:EXTernal:REMote:EDIT:DEVice:[ID]`` \n
Snippet: ``driver.sconfiguration.external.remote.edit.device.set_id(device_id = 'abc')`` \n
No help available
"""
param = Conversions.value_to_quoted_str(device_id)
self._core.io.write(f'SCONfiguration:EXTernal:REMote:EDIT:DEVice:ID {param}')