public void RestoreCredentialsFromFile() { var ewelink = new Ewelink(Email, Password, Region); ewelink.RestoreCredenditalsFromFile(); output.WriteLine(ewelink.Credentials.AsJson()); }
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(); }