Network
Net basics and web requests :D.
Methods
init
Network.init(ip?, netmask?, gateway?, dns?);
Network.init("192.168.0.10", "255.255.255.0", "192.168.0.1", "192.168.0.1"); // Static mode
Network.init(); // DHCP Mode, dynamic.
getConfig
const conf = Network.getConfig();
Returns
- conf.ip
- conf.netmask
- conf.gateway
- conf.dns
deinit
Shutdown network.
Network.deinit();