GetAllPorts static method
Implementation
static Future<PortInfoList> GetAllPorts() async {
String jwt = await getJWT();
final channel = await Channel.getDefaultIoTManagerChannel();
final stub = PortManagerClient(channel,
options: CallOptions(metadata: {'jwt': jwt}));
Empty empty = Empty();
PortInfoList portInfoList = await stub.getAllPorts(empty);
print('GetAllPorts: ${portInfoList}');
channel.shutdown();
return portInfoList;
}