/*Buenas Tardes! soy nuevo en el IoT Cloud, necesito su ayuda.
Les comento que mi programa si funciona si lo compilo en el IDE y lo cargo a mi tarjeta Arduino Uno R4 WIFI
Ya enlacé mi tarjeta al IoT cloud y SI la reconoce. He creado una "cosa"(Thing) para poder visualizarla en el Dashboard(panel) con algún indicador visual.
Estoy en la etapa de probar esta variable que se creó "peso32", la programé para mostrar valores random de 0 al 100, el en panel enlazo la variable y no muestra nada.El código es el siguiente:
/*
Sketch generated by the Arduino IoT Cloud Thing "Untitled"
https://create.arduino.cc/cloud/things/b102bddb-7ae6-47b9-adbc-4a980f3af94c
Arduino IoT Cloud Variables description
The following variables are automatically generated and updated when changes are made to the Thing
int peso32;
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
peso32 = random(0,100);
delay(1000);
}
Muchas gracias de antemano
Saludos!