My new Arduino Uno R4 WiFi is connected to the Arduino Cloud. When I upload the template program with my SSID and PASS, I get the following in the serial monitor:
***** Arduino IoT Cloud - configuration info *****
Device ID: 7c0654a1-f927-4cc7-a5ef-9c118043734b
MQTT Broker: iot.arduino.cc:8883
WiFi.status(): 0
Current WiFi Firmware: 0.4.1
Connected to "YA-House"
TimeServiceClass::getRemoteTime cannot get time from NTP, fallback on connection handler
TimeServiceClass::getRemoteTime cannot get time from connection handler
ArduinoIoTCloudTCP::handle_SyncTime could not get valid time. Retrying now.
The error repeats until I disconnect the Arduino. Outside of the SSID and PASS, I have not changed anything from the default template sketch in the Arduino Cloud. Here is the sketch I am using:
/*
Sketch generated by the Arduino IoT Cloud Thing "Untitled"
https://create.arduino.cc/cloud/things/ee2c404a-ef49-4994-b5ef-4e07f924ff8c
Arduino IoT Cloud Variables description
The following variables are automatically generated and updated when changes are made to the Thing
bool blinds;
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
}
/*
Since Blinds is READ_WRITE variable, onBlindsChange() is
executed every time a new value is received from IoT Cloud.
*/
void onBlindsChange() {
// Add your code here to act upon Blinds 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 onBlindsChange();
bool blinds;
void initProperties(){
ArduinoCloud.addProperty(blinds, READWRITE, ON_CHANGE, onBlindsChange);
}
WiFiConnectionHandler ArduinoIoTPreferredConnection(SSID, PASS);