Get network info

 1'''
 2System - get_network_info.py.
 3
 4This example demonstrates how to get network information.
 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## Get IP
17ip = pywpc.Sys_getIP()
18print(ip)
19
20## Get submask
21sbk = pywpc.Sys_getSubmask()
22print(sbk)
23
24## Get gateway
25gateway = pywpc.Sys_getGateway()
26print(gateway)
27
28## Get MAC
29mac = pywpc.Sys_getMAC()
30print(mac)