Nano 33 iot I can't connect to my wifi using cloud sketch

I can connect to my wifi with no issues however when I up load a basic cloud sketch it doesn't connect to my wifi
help
thanks
tom

Be sure to post a drawing, formatted code (tabbed, inside </>) and expected results and debug/error output.

thanks ill try to figure out how to do that :grinning:

Just a photo of a paper drawing is fine. Upload the photo with the "Upload" button in the Reply box. The code: paste your code into the Arduino IDE, format it (CTRL-T), then copy/paste it in the Reply box (here) after clicking the </> code tag, which makes it easy to read and for others to copy/paste into their IDE for testing/editing. Error/debug output might be seen on the IDE Monitor (CTRL-SHFT-M).

THE Tom? I hear MySpace has changed. : (

* 
  Sketch generated by the Arduino IoT Cloud Thing "Untitled"
  https://create.arduino.cc/cloud/things/7162b031-918c-462e-882a-3983809a2335 

  Arduino IoT Cloud Variables description

  The following variables are automatically generated and updated when changes are made to the Thing

  CloudTemperatureSensor test;

  Variables which are marked as READ/WRITE in the Cloud Thing will also have functions
  which are called when their values are changed from the Dashboard.
  These functions are generated with the Thing and added at the end of this sketch.
*/

#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);
  
  /*
     The following function allows you to obtain more information
     related to the state of network and IoT Cloud connection and errors
     the higher number the more granular information you’ll get.
     The default is 0 (only errors).
     Maximum is 4
 */
  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();
}

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

/ Code generated by Arduino IoT Cloud, DO NOT EDIT.

#include <ArduinoIoTCloud.h>
#include <Arduino_ConnectionHandler.h>

const char SSID[]     = SECRET_SSID;    // Network SSID (name)
const char PASS[]     = SECRET_PASS;    // Network password (use for WPA, or use as key for WEP)


CloudTemperatureSensor test;

void initProperties(){

  ArduinoCloud.addProperty(test, READ, ON_CHANGE, NULL);

}

WiFiConnectionHandler ArduinoIoTPreferredConnection(SSID, PASS);

Does it need a password?

yes both ssid and password are entered. strange thing is I can load it in normal IDE (downloaded from cloud) and it connects to the cloud but if I load it from the cloud it doesn't connect to wifi let alone the cloud.

Try uninstalling the create agent: How to uninstall the Arduino Create Agent

Then proceed to updated version and install the Arduino Create Agent as sometimes the case can be a malfunctioning create agent.

Also, have a look at this article and ensure you have followed all these troubleshooting steps correctly. https://support.arduino.cc/hc/en-us/articles/360019355679-If-your-device-can-t-be-added-or-won-t-connect-to-IoT-Cloud

Well I don't know what I did but it must have been a conbination of everyone help thanks for all your advice
Tom

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