예제 #1
0
파일: Client.cs 프로젝트: drittich/WeMosDef
 public string GetFriendlyName()
 {
     using (var client = new ServiceReference1.BasicServicePortTypeClient())
     {
         client.Endpoint.Address = new EndpointAddress(EndPointAddress);
         var state = client.GetFriendlyName(new ServiceReference1.GetFriendlyName());
         return(state.FriendlyName);
     }
 }
예제 #2
0
파일: Client.cs 프로젝트: drittich/WeMosDef
 public string GetLogFileURL()
 {
     using (var client = new ServiceReference1.BasicServicePortTypeClient())
     {
         client.Endpoint.Address = new EndpointAddress(EndPointAddress);
         var state = client.GetLogFileURL(new ServiceReference1.GetLogFileURL());
         return(state.LOGURL);
     }
 }
예제 #3
0
파일: Client.cs 프로젝트: drittich/WeMosDef
 public string GetSignalStrength()
 {
     using (var client = new ServiceReference1.BasicServicePortTypeClient())
     {
         client.Endpoint.Address = new EndpointAddress(EndPointAddress);
         var state = client.GetSignalStrength(new ServiceReference1.GetSignalStrength());
         return(state.SignalStrength);
     }
 }
예제 #4
0
파일: Client.cs 프로젝트: drittich/WeMosDef
 public void ChangeFriendlyName()
 {
     using (var client = new ServiceReference1.BasicServicePortTypeClient())
     {
         client.Endpoint.Address = new EndpointAddress(EndPointAddress);
         var msg = new ServiceReference1.ChangeFriendlyName {
             FriendlyName = "0"
         };
         var state = client.ChangeFriendlyName(msg);
     }
 }
예제 #5
0
파일: Client.cs 프로젝트: drittich/WeMosDef
 public string Off()
 {
     using (var client = new ServiceReference1.BasicServicePortTypeClient())
     {
         client.Endpoint.Address = new EndpointAddress(EndPointAddress);
         var msg = new ServiceReference1.SetBinaryState {
             BinaryState = "0"
         };
         var state = client.SetBinaryState(msg);
         return(state.BinaryState);
     }
 }