private static void OnMonitorTimer_Tick(object source, ElapsedEventArgs e) { HuaweiRouter router = new HuaweiRouter(); router.PrintDebugMessages = options.Debug; router.BaseAddress = "http://192.168.1.1/"; router.GetNetworkInformation(); }
private static void RestartRouter() { HuaweiRouter router = new HuaweiRouter(); router.PrintDebugMessages = options.Debug; router.BaseAddress = "http://192.168.1.1/"; router.Login("admin", options.Password); router.GetNetworkInformation(); router.Reboot(); }