Connect to internetexample

There are a few different scenarios for connecting your device to the internet, depending on your hardware of choice and the source of internet you'd prefer.

Wi-Fi

Connecting with built in Wi-Fi

Some boards like the ESP8266 or the ESP32 have built in Wi-Fi, which makes it pretty easy to connect a device using one such board to the internet.
You'd simply need to add the Generic WiFi peripheral to your project, set it up with the name and password of the wireless network, which you wish to use and that's it!

Connecting with external Wi-Fi module

For board, which don't have built in Wi-Fi capabilities, such as the STM32, you can add an external Wi-Fi module.
ESP8266 can be used as one such module. Aside from being able to serve as a main board for your device, it can also serve as a Wi-Fi module.
To use an ESP8266 as a Wi-Fi module, you need to add the WiFi peripheral to your project, wire it to a UART port and set it up with the name and password of the wireless network, which you wish to use. Now your device will be able to use internet.
As mentioned, you may simply use the ESP8266 as your main board, but since there might be other considerations for choosing a different board, there's this option as well.

GPRS

Connecting with external GSM module

There are plenty of reasons you might want to use the GSM/GPRS network for a source of internet. Most commonly, it's when there's no accessible Wi-Fi netowork available around your device.
To connect to the mobile data network just as a mobile phone woul d, you'd need a sim card with a data plan - just as a mobile phone would.
Then attach a GSM module, such as the SIM800L. Wire the SIM800L to a UART port on your main board and insert your SIM card.
Lastly, add a GSM peripheral to your project and upload the project to your device. That should be it.

Interact

Access your device via the net

Once your device is able to access the internet, you can use Weblink to interact with it.
To check it out, see the Weblink info page.
Happy creating!