Hello
Can someone help me with code and display device status (online/offline) on dashboard? Arduino cloud
Like:
I found something like this:
ArduinoCloud.update();
//Your code here
if (ArduinoCloud.connected()) {
Serial.println("Cloud Connection Sucess");
num=random(100);
Serial.println("rh"+String(rh));
digitalWrite(LED_BUILTIN, HIGH);
delay(1000);
}
else{
Serial.println("#NO CLOUD CONNECTION#");
digitalWrite(LED_BUILTIN, LOW);
delay(1000)
;
But how to use this with a widget