In file included from /tmp/1536099650/TEST02_jul11a/TEST02_jul11a.ino:19:0:
/tmp/1536099650/TEST02_jul11a/thingProperties.h:2:29: fatal error: ArduinoIoTCloud.h: No such file or directory
#include <ArduinoIoTCloud.h>
^
compilation terminated.
Error during build: exit status 1
My code work well last night and when i try to test again i got this error any idea ? help me pls
/*
Sketch generated by the Arduino IoT Cloud Thing "Untitled 2"
https://create.arduino.cc/cloud/things/66e66972-2413-4623-b19a-0b5cbb35b3d8
Arduino IoT Cloud Variables description
The following variables are automatically generated and updated when changes are made to the Thing
String msg;
CloudTemperatureSensor temperature;
CloudRelativeHumidity humidity;
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"
#include "DHT.h"
#define DHTpin 2 // D4 on the nodemcu ESP8266
#define DHTTYPE DHT11
DHT dht(DHTpin,DHTTYPE);
const int relayPin = 4;
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(3000);
// Defined in thingProperties.h
initProperties();
// Connect to Arduino IoT Cloud
ArduinoCloud.begin(ArduinoIoTPreferredConnection);
pinMode(relayPin, OUTPUT);
/*
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
dht_sensor_getdata();
}
/*
Since Humidity is READ_WRITE variable, onHumidityChange() is
executed every time a new value is received from IoT Cloud.
*/
void onHumidityChange() {
// Add your code here to act upon Humidity change
}
/*
Since Msg is READ_WRITE variable, onMsgChange() is
executed every time a new value is received from IoT Cloud.
*/
void onMsgChange() {
// Add your code here to act upon Msg change
}
void dht_sensor_getdata()
{
float hm= dht.readHumidity();
Serial.print("Humidity ");Serial.println(hm);
float temp=dht.readTemperature();
Serial.print("Temperature ");Serial.println(temp);
humidity=hm;
temperature=temp;
msg="Temperature = " + String (temperature)+" Humidity = " + String(humidity);
if (temp > 31.0) {
// Activate the relay
digitalWrite(relayPin, LOW);
} else {
// Deactivate the relay
digitalWrite(relayPin, HIGH);
}
}
My last post i have an issue that ArduinoIoTCloud.h it like missing on Clound app then it happen to my all libaries on Arduino IoTCloud are gone i have to download manual such
ArduinoIotCloud.h
Arduino_ConnectioHandler
Arduino_DebugUtils
ArduinoMqttCilent
DHT_sensor
etc
pls help me if you have any idea what going on it this bug on clound or severdown ?
Hi @se7en247. Does the error still occur if you try again now? I just did some experiments and was not able to reproduce it.
This is quite unexpected because the ArduinoIoTCloud library is pre-installed in Arduino Cloud, so the header file ArduinoIoTCloud.h should always be available for use in your sketch code. This makes me think it might have been a transient fault and so might have been resolved since the time you experienced the error.
Cross-posting is against the Arduino forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.
Repeated cross-posting can result in a suspension from the forum.
In the future, please only create one topic for each distinct subject matter. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.
I have the same error comming. It´s actually the same program I used some months ago and it worked perfectly fine. Now when trying to verify I get the error message: fatal error: ArduinoIoTCloud.h: No such file or directory
I already slove this problem. It about Arduino cloud server it bug or lagging i think. I wait around 3-5 hour and comeback to run code on website everything trun to normal
I have had same error now for 5 hours. I hope it it will compile normally again soon. Very annoying to be stopped working with a missing file in Arduino's file structure.
Hi all. I apologize for the problem. The Arduino Cloud developers have been notified of the problem. I'll report back here if I receive any news from them.
Hola parece que el problema persiste, me sale el mismo error, ayer compilaba un programa y ahora no, cabe mensionar que es el mismo programa el que ayer funcionaba y hoy sale el problema con la libreria iot cloud. aun no encuentro la solucion
The problem no longer occurs for me when compiling sketches using Arduino Web Editor.
So if you experienced the problem before while using Arduino Web Editor, please try again. Hopefully the error will no longer occur.
Unfortunately I do still experience the problem when compiling an Arduino IoT Cloud Thing sketch from the "Sketch" tab of Arduino IoT Cloud. So it seems the bug has not yet been fixed in Arduino IoT Cloud. However, I do have a workaround Arduino IoT Cloud users can use until it is fixed:
Please click the "Open full editor button you see in the "Sketch" tab of your Thing sketch. This will open the sketch in Arduino Web Editor. You can then compile or upload the sketch using Arduino Web Editor and the error should no longer occur.
Please let me know if you still have any questions or problems while using Arduino Cloud.
The remaining bug that caused the unexpected "No such file or directory" errors when compiling from the "Sketch" tab of Arduino IoT Cloud should now be fixed. So it is no longer necessary to use the workaround I described earlier of using the "full editor" to compile and upload.
Please let me know if you still have any questions or problems while using Arduino Cloud.