Get started

 1'''
 2Tutorial - get_started.py.
 3
 4This example demonstrates how to reboot the device
 5
 6For other examples please check:
 7    https://github.com/WPC-Systems-Ltd/WPC_Stand-alone_Python_release/tree/main/examples
 8
 9Copyright (c) 2024 WPC Systems Ltd.
10All rights reserved.
11'''
12
13## WPC
14import pywpc
15
16## Python
17import time
18
19print(f"Hello world!")
20
21for i in range(10, 0, -1):
22    print(f"Restarting in {i} seconds...")
23    time.sleep(1) ## delay [s]
24
25print(f"Restarting now")
26pywpc.Sys_reboot()