ni_measurementlink_service._drivers._grpcdevice
Shared functions for interacting with NI gRPC Device Server.
Module Contents
Functions
|
Get an address targeting NI gRPC Device Server for unencrypted communication. |
Get an unencrypted gRPC channel targeting NI gRPC Device Server. |
Attributes
The service class for NI gRPC Device Server. |
- ni_measurementlink_service._drivers._grpcdevice.SERVICE_CLASS = 'ni.measurementlink.v1.grpcdeviceserver'
The service class for NI gRPC Device Server.
- ni_measurementlink_service._drivers._grpcdevice.get_grpc_device_server_location(discovery_client, provided_interface)[source]
Get an address targeting NI gRPC Device Server for unencrypted communication.
- Parameters:
discovery_client (ni_measurementlink_service.discovery.DiscoveryClient) –
provided_interface (str) –
- Return type:
Optional[ni_measurementlink_service.discovery.ServiceLocation]
- ni_measurementlink_service._drivers._grpcdevice.get_insecure_grpc_device_server_channel(discovery_client, grpc_channel_pool, provided_interface)[source]
Get an unencrypted gRPC channel targeting NI gRPC Device Server.
- Parameters:
discovery_client (ni_measurementlink_service.discovery.DiscoveryClient) –
grpc_channel_pool (ni_measurementlink_service.grpc.channelpool.GrpcChannelPool) –
provided_interface (str) –
- Return type:
Optional[grpc.Channel]