discoverWithHttpInfo method
Future<Response>
discoverWithHttpInfo(
- DiscoverRequest discoverRequest, {
- required String uuidToken,
Creates a temporary connection and discover its metrics
Creates a temporary connection and discover its metrics. Avaiable only for OPCUA connections. Requires a AddConnectionOPCUA object as request body. Returns an array of metrics as MetricOPCUA objects. If an Internal Server Error occours, an Error object will be returned.
Note: This method returns the HTTP Response.
Parameters:
-
DiscoverRequest discoverRequest (required):
-
String uuidToken: Used for remote connections to device
Implementation
Future<Response> discoverWithHttpInfo(
DiscoverRequest discoverRequest, {
required String uuidToken,
}) async {
// ignore: prefer_const_declarations
final path = '${LbWriterEnvironment.getApiEndpoint(
iotUuid: uuidToken,
)}/connection/discover';
// ignore: prefer_final_locals
Object? postBody = discoverRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}