Issue with connecting Arduino board to Cloud

Hi, this is my first Arduino project. I am using Arduino Nano RP 2040 Connect.
As I understand it, after uploading the sketch to the board (including the credentials for the network), code in the void setup() method should initialise the board, and it should connect to the cloud and enable me to manipulate it through the dashboard.

Problem is, for some reason, after I upload the sketch to the board nothing really happens and nothing changes, the board is still offline in the cloud.

I included an IMG and the code I use below.
Please help me if you can. Thank you in advance.

#include "arduino_secrets.h"
#include "thingProperties.h"

void setup() {
 // Initialize serial and wait for port to open:
 Serial.begin(9600);
 // This delay gives the chance to wait for a Serial Monitor without blocking if none is found
 delay(1500); 

 // Defined in thingProperties.h
 initProperties();

 // Connect to Arduino IoT Cloud
 ArduinoCloud.begin(ArduinoIoTPreferredConnection);
 
 setDebugMessageLevel(2);
 ArduinoCloud.printDebugInfo();
}

void loop() {
 ArduinoCloud.update();
 // Your code here 
 
 
}

void onTempChange()  {
 // Add your code here to act upon Temp change
}

P.S: When trying to debug in the Arduino IDE I encounter the following msg if it is at all related:

CDRTOSConfigure
embedded:startup.tcl:26: Error: Can't find interface/{programmer.protocol}.cfg
in procedure 'script' 
at file "embedded:startup.tcl", line 26

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.