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