Arduino nano rp 2040 WiFinina modul error

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

does your arduino_secrets.h contain valid entries?

there is no such a library name that

You need to key in your wifi network parameters correctly.
If your Wi-Fi network does not have a password (that is open type), then from the IoT cloud’s “Sketch” section, open “Open full editor”, there you can see the header file “thingProperties.h”. Set PASS[] = ""; if you are using an open wifi network.

If you keyed in the network parameters correctly, then update the Wifinina firmware, see https://docs.arduino.cc/tutorials/nano-rp2040-connect/rp2040-upgrading-nina-firmware.

i feel so stupid. i jsut think i can ssid netvork name how i would like and dont know i need to name it like my network, thx you help

1 Like

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