public async void LANTurnON() { var ewelink = new Ewelink("", "", ""); ewelink.RestoreDevicesFromFile(); ewelink.RestoreCredenditalsFromFile(); ewelink.RestoreArpTableFromFile(); var device = ewelink.Devices.First(x => x.deviceid == deviceId) as SwitchDevice; await device.TurnOnLAN(); }
public void ZeroconfGetIp() { var ewelink = new Ewelink("", "", ""); ewelink.RestoreDevicesFromFile(); ewelink.RestoreArpTableFromFile(); Device device = ewelink.Devices.First(); var ip = device.GetIp(); output.WriteLine(ip.ToString()); }