I recently got an Arduino Uno R4 Wifi and I want to try out the IoT Cloud feature and others, but no matter what I do, the board stays offline.
The firmware version is 0.4.1 and I am using a different cable and nothing has changed.
I can upload sketch etc via cloud, but when I open Serial Monitor it is forever 'Connecting...' was displayed. I reset the board and nothing happens.
Please help me!!!!!!
/*
Sketch generated by the Arduino IoT Cloud Thing "Untitled"
https://create.arduino.cc/cloud/things/2bcf009c-5a8b-483f-a1f8-f9a8fb9e2db9
Arduino IoT Cloud Variables description
The following variables are automatically generated and updated when changes are made to the Thing
bool led;
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"
const int ledPin = 13; // 使用するピンを定義します
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
// LEDの状態を更新
if (led) {
digitalWrite(ledPin, HIGH);
} else {
digitalWrite(ledPin, LOW);
}
}
/*
Since Led is READ_WRITE variable, onLedChange() is
executed every time a new value is received from IoT Cloud.
*/
void onLedChange() {
// Add your code here to act upon Led change
}
What do you mean? I'm also experiensing disconnections from WiFi after about 24 hours of connection and the Uno R4 wifi is not able to reconnect...
Can you suggest a solution?
@asafvadai you already have a dedicated topic for your problem:
Please don't add replies about it to other people's topics.
There is no "also" about it. @kikikai12's problem was that the board never connected to the Arduino Cloud servers (or the Wi-Fi network at all it turned out). Your problem is that your board connects, but then later disconnects.
Even though they happen to be distantly related in that they both involve a connection, these problems are completely different, and must have completely different causes. So you are only wasting everyone's time by bringing up your problem here. Please be respectful of the time of the people who provide assistance here on the forum.