Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        public void ZeroconfGetIp()
        {
            var ewelink = new Ewelink("", "", "");

            ewelink.RestoreDevicesFromFile();
            ewelink.RestoreArpTableFromFile();

            Device device = ewelink.Devices.First();
            var    ip     = device.GetIp();

            output.WriteLine(ip.ToString());
        }