Core API

disconnect

The disconnect function will disconnect the device from the connected WiFi network. Use this function to temporarily disconnect the device from the network or when you no longer need it until the next time you reboot the device.

API Reference

You can call this function anywhere in your code.

NW.disconnect();  // <-- disconnect network
Previous
connect