Exemplo n.º 1
0
 public string loaddevices(){
     string connectedDevicestring = "";
     try
     {
         NetworkInfo connectedDevices = new NetworkInfo();
         NetworkMap connectedDev = new NetworkMap();
         connectedDevices = connectedDev.getNetworkMappingInfo();
         connectedDevicestring = JsonConvert.SerializeObject(connectedDevices);
     }
     catch (Exception ex)
     {
         ErrorTracker.WriteErrorLog("networkmap.cs", "loaddevices", "", ex.Message, ex.StackTrace, "ERROR");
     }
     return connectedDevicestring;
 }