C# example for using the Service device
9 public static void Service()
22 Console.WriteLine(
"\n\nSerial Number: " + service.SerialNumber);
25 Console.WriteLine(
"\n System Temperature: " + service.SystemTemperature.ToString() +
" °C");
30 service.FanTargetTemperature = 40;
31 Console.WriteLine(
"\nSet target temperature for the fan control to 40°C. Done");
33 catch (System.Exception exception)
35 Console.WriteLine(
"\n" + exception.Message);
40 service.WatchdogSetup(
true, 2000);
42 System.Threading.Thread.Sleep(1000);
45 service.WatchdogService();
47 System.Threading.Thread.Sleep(1000);
50 service.WatchdogSetup(
false, 2000);
53 bool RunFirmwareUpdate =
false;
54 if (RunFirmwareUpdate)
57 Console.WriteLine(
"\nFirmwareUpdate: ");
58 service.FirmwareUpdate(
"AGE_X2.rbf");
59 Console.WriteLine(
"Firmware update finished, power off required");
63 catch (System.Exception e)
65 Console.WriteLine(e.Message);
68 Console.WriteLine(
"\nPress enter to proceed...");
69 System.Console.ReadLine();