Esempio n. 1
0
 // For test only
 public async Task <string> GetDeviceNameAsync(string hostAddress)
 {
     using (var socket = await ProdysSocketPool.TakeSocket(hostAddress))
     {
         SendCommand(socket, new CommandIkusNetSysGetDeviceName());
         var response = new IkusNetGetDeviceNameResponse(socket);
         return(response.DeviceName);
     }
 }
Esempio n. 2
0
 public string GetDeviceName(string hostAddress)
 {
     using (var socket = GetConnectedSocket(hostAddress))
     {
         SendCommand(socket, new CommandIkusNetSysGetDeviceName());
         var response = new IkusNetGetDeviceNameResponse(socket);
         return(response.DeviceName);
     }
 }