Hi, I uploaded the following sketch to an MKR 1400.
#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
int rainStatus = analogRead(A0);
Serial.println(rainStatus);
delay(1000);
}
I have variable called int rainStatus set up.
rainStatus
Declaration: int rainStatus
Type: integer number
Variable Permission: Read Only
Send Values: Timed Every: 1 s
Last Value: 0
I have a widget set up linked to the variable rainStatus. Widget information is in the screenshot.
The dashboard does not update with a sensor value. When I run the serial monitor from my computer, the board responds
SIM card ok
Sending PING to outer space...
SPRES.ping(*) : 264Connected to GPRS Network
Connnected to Arduino IoT Cloud
I altered the sensor reading and the serial monitor prints those new change. My device status is Online in the IoT Cloud setup page. Last activity is very recent. Maybe I am not seeing something here; maybe you can help! Thank