grpc: implemened initial support for streaming emane pathloss events
This commit is contained in:
parent
7048aa7867
commit
3b0ca1638c
6 changed files with 85 additions and 3 deletions
|
@ -31,6 +31,8 @@ from core.api.grpc.emane_pb2 import (
|
|||
EmaneLinkRequest,
|
||||
EmaneLinkResponse,
|
||||
EmaneModelConfig,
|
||||
EmanePathlossesRequest,
|
||||
EmanePathlossesResponse,
|
||||
GetEmaneConfigRequest,
|
||||
GetEmaneConfigResponse,
|
||||
GetEmaneEventChannelRequest,
|
||||
|
@ -1229,6 +1231,17 @@ class CoreGrpcClient:
|
|||
)
|
||||
return self.stub.WlanLink(request)
|
||||
|
||||
def emane_pathlosses(
|
||||
self, pathloss_iter: Iterable[EmanePathlossesRequest]
|
||||
) -> EmanePathlossesResponse:
|
||||
"""
|
||||
Stream EMANE pathloss events.
|
||||
|
||||
:param pathloss_iter: iterator for sending EMANE pathloss events
|
||||
:return: EMANE pathloss response
|
||||
"""
|
||||
return self.stub.EmanePathlosses(pathloss_iter)
|
||||
|
||||
def connect(self) -> None:
|
||||
"""
|
||||
Open connection to server, must be closed manually.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue