ArduinoIoTCloud - begin() (TCP)

Description

Initialises the library with the connection handler specified in thingProperties.h. This is automatically generated based on the type of device.

Syntax

ArduinoCloud.begin()

Parameters

The ArduinoIoTPreferredConnection object is created automatically inside a thingProperties.h file when configuring a Thing and depends on what type of device you use. The connection handler classes are not part of the Arduino IoT Cloud, but exists inside the Arduino_ConnectionHandler library (listed as a dependency).

For example, using the WiFiConnectionHandler, we use the SSID, PASS parameters which are defined in the arduino_secrets.h file, also generated based on what you input in the Arduino IoT Cloud interface.

WiFiConnectionHandler ArduinoIoTPreferredConnection(SSID, PASS);

Returns

Nothing.