daemon/gui: added support to configure wireless network for position calculations or not
This commit is contained in:
parent
d124820a86
commit
d20cb1ef58
10 changed files with 216 additions and 15 deletions
|
@ -20,6 +20,7 @@ from core.api.grpc.configservices_pb2 import (
|
|||
from core.api.grpc.core_pb2 import (
|
||||
ExecuteScriptRequest,
|
||||
GetConfigRequest,
|
||||
GetWirelessConfigRequest,
|
||||
LinkedRequest,
|
||||
WirelessConfigRequest,
|
||||
WirelessLinkedRequest,
|
||||
|
@ -1142,6 +1143,13 @@ class CoreGrpcClient:
|
|||
)
|
||||
self.stub.WirelessConfig(request)
|
||||
|
||||
def get_wireless_config(
|
||||
self, session_id: int, node_id: int
|
||||
) -> Dict[str, wrappers.ConfigOption]:
|
||||
request = GetWirelessConfigRequest(session_id=session_id, node_id=node_id)
|
||||
response = self.stub.GetWirelessConfig(request)
|
||||
return wrappers.ConfigOption.from_dict(response.config)
|
||||
|
||||
def connect(self) -> None:
|
||||
"""
|
||||
Open connection to server, must be closed manually.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue