Temp Sensor writes to Serial Monitor, Not to Dashboard arduino cloud

Hi , I'm using Arduino rev 4 and Max31865 sensor to sense the temperature. I'm getting output on the serial monitor but my dashboard is not showing the data.
Following is my output in the serial monitor:-

Connection to "n2023" failed
Retrying in "500" milliseconds
23.10

#include <Adafruit_MAX31865.h>

#include "thingProperties.h"

Adafruit_MAX31865 thermo = Adafruit_MAX31865(10, 11, 12, 13);

#define RREF      430.0

#define RNOMINAL  100.0

void setup() {
  
  Serial.begin(9600);
   
   Serial.println("Adafruit MAX31865 PT100 Sensor Test!");

  thermo.begin(MAX31865_3WIRE);  
  initProperties();

 
  ArduinoCloud.begin(ArduinoIoTPreferredConnection);
  

  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();
}

void loop() {
  ArduinoCloud.update();
  delay(2000); 
 

   uint16_t rtd = thermo.readRTD();

  
  float ratio = rtd;
  ratio /= 32768;
  temp=thermo.temperature(RNOMINAL, RREF);
  Serial.println(temp);


  
  
} 
  
  






/*
  Since Temp is READ_WRITE variable, onTempChange() is
  executed every time a new value is received from IoT Cloud.
*/
void onTempChange()  {
  // Add your code here to act upon Temp change
}
// 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_OPTIONAL_PASS;    // Network password (use for WPA, or use as key for WEP)

void onTempChange();

float temp;

void initProperties(){

  ArduinoCloud.addProperty(temp, READWRITE, ON_CHANGE, onTempChange);

}

WiFiConnectionHandler ArduinoIoTPreferredConnection(SSID, PASS);

Why did you post this topic in a Covid-19 category of the forum ?

It has been moved to a more relevant category

Thanks!

Do You expect help for all exisiting dashboards? Technical manual, please.
Your wiring, the schematics..... No chance to guess what it looks like.

Hi @nbabu_2023.

This explains the problem. The UNO R4 WiFi board is not able to connect to your Wi-Fi access point with SSID "n2023" using the network credentials you set up for the Arduino Cloud Thing. If the board can't connect to the Internet then it can't update the Arduino Cloud dashboard.

Please double-check that the credentials are correct:

  1. If you are not already, log in to your Arduino account:
    https://login.arduino.cc/login
  2. Click the following link to open the list of your Arduino Cloud Things in the web browser:
    https://app.arduino.cc/things
  3. Click the name of the Thing.
    The "Setup" page for the Thing will open.
  4. Click the "Change" button under the "Network" section of the page.
    The "Configure network" dialog will open.
  5. Verify that the value in the "Wi-Fi Name" field of the dialog is the SSID of a Wi-Fi access point you have access to.
    :exclamation: This must be a 2.4 GHz access point. The UNO R4 WiFi board cannot connect to 5 GHz access points.
  6. Verify that the value in the "Password" field of the dialog is the password of that Wi-Fi access point.
  7. Click the "SAVE" button in the dialog.
    The "Configure network" dialog will close.

If you made any changes to the network credentials, upload the sketch to your UNO R4 WiFi board. Hopefully this time it will be able to connect to the access point and everything will work as expected.

You will know the board was able to connect to the access point, and then to the Arduino Cloud server by the appearance of this message in Serial Monitor:

Connected to Arduino IoT Cloud

It worked. Thank you :blush:

You are welcome. I'm glad it is working now.

Regards,
Per

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