portConfig2portService function
Implementation
PortServiceInfo portConfig2portService(PortConfig portConfig) {
Map<String,String> info = Map();
var portServiceInfo = PortServiceInfo(
// 设备的实际地址
Config.webgRpcIp,
portConfig.localProt,
// 如果不是本网设备(是远程设备)则 使用的ip为127.0.0.1
false,
// TODO 能不能直接使用mDNSInfo
info:info,
runId: portConfig.device.runId,
realAddr: portConfig.device.addr
);
return portServiceInfo;
}