Пример #1
0
 /// <summary>
 /// 搜索设备
 /// </summary>
 /// <returns>Yeelight对象</returns>
 public static IAsyncOperation <IList <Yeelight> > SearchDeviceAsync()
 {
     return(YeelightUtils.SearchDeviceHelper(SEARCH_DEVICE_DEFAULT_TIMEOUT).AsAsyncOperation());
 }
Пример #2
0
 /// <summary>
 /// 搜索设备
 /// </summary>
 /// <param name="timeout">超时时间 毫秒</param>
 /// <returns>Yeelight对象</returns>
 public static IAsyncOperation <IList <Yeelight> > SearchDeviceAsync(int timeout)
 {
     return(YeelightUtils.SearchDeviceHelper(timeout).AsAsyncOperation());
 }
Пример #3
0
 /// <summary>
 /// 获取本机IP地址
 /// </summary>
 /// <returns>IP地址列表</returns>
 public static IList <string> GetLocalIPs()
 {
     return(YeelightUtils.GetLocalIPsHelper());
 }