Пример #1
0
 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();
 }
Пример #2
0
 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();
 }