hi i just buy nano rp2040 and trying to connect IoT cloud. I add device and upload skatch from arduino
#include "thingProperties.h"
#include <Arduino_LSM6DSOX.h>
void setup() {
Serial.begin(9600);
delay(1500);
//define RGB LED as outputs
pinMode(LEDR, OUTPUT);
pinMode(LEDG, OUTPUT);
pinMode(LEDB, OUTPUT);
initProperties();
ArduinoCloud.begin(ArduinoIoTPreferredConnection);
setDebugMessageLevel(2);
ArduinoCloud.printDebugInfo();
//init IMU library
if (!IMU.begin()) {
Serial.println("Failed to initialize IMU!");
while (1);
}
}
void loop() {
ArduinoCloud.update();
//read acceleration and store in a_x, a_y, a_z variables
if (IMU.accelerationAvailable()) {
IMU.readAcceleration(a_x, a_y, a_z);
}
}
/*
the onRgbLightChange() function is triggered
when the rgb_light variable changes
*/
void onRgbLightChange() {
//create r,g,b variables
uint8_t r, g, b;
//retrieve values from the cloud
rgb_light.getValue().getRGB(r, g, b);
//values on Nano RP2040 Connect are inverted
//so let's remap them
int red = map(r, 0, 255, 255, 0);
int green = map(g, 0, 255, 255, 0);
int blue = map(b, 0, 255, 255, 0);
if (rgb_light.getSwitch()) {
analogWrite(LEDR, red);
analogWrite(LEDG, green);
analogWrite(LEDB, blue);
}
else {
analogWrite(LEDR, 255);
analogWrite(LEDG, 255);
analogWrite(LEDB, 255);
}
}
, i open serial monitor and it sending me this error
Connection to "<your-network>" failed. Retrying in 500 milliseconds.
(copied error from aduino tutorial) you network i have named