Everytime, I compile the code, it gives me this error.
In file included from /home/builder/Arduino/libraries/arduinoiotcloud_1_15_1/src/ArduinoIoTCloud.h:35:0,
from /tmp/3565764065/Smart_home_apr27a/thingProperties.h:3,
from /tmp/3565764065/Smart_home_apr27a/Smart_home_apr27a.ino:23:
/home/builder/Arduino/libraries/arduinoiotcloud_1_15_1/src/cbor/CBORDecoder.h:28:10: fatal error: list: No such file or directory
The Arduino Uno board can't be used with the Arduino Cloud IoT features, and thus that board is not supported for use with the "ArduinoIoTCloud" library. This is the cause of the compilation error.
If you would like to use the IoT features of Arduino Cloud, you must obtain one of the supported boards. You can find out which boards are supported here:
Even though the IoT features of Arduino Cloud can't be used with the Arduino UNO board, the board is still perfectly supported for use with the Arduino Cloud Editor and the Arduino Uno board is an excellent choice for all sorts of amazing non-IoT projects. You can use Cloud Editor to write, compile and upload any compatible sketch for the Arduino Uno board.
Certainly, just not with the specific configuration you were attempting to use.
You can implement some system that runs on your UNO board, which does not use the incompatible Arduino Cloud IoT features. You might find this library useful for controlling the ESP8266 from the Uno sketch program if you chose this approach.
- OR -
You can try using the ESP8266 module as the Arduino Cloud IoT Device instead of the UNO board, and run the Arduino Cloud IoT Thing sketch program on the ESP8266 instead of on the Uno. If you still need the Uno in this system, you can run a separate, non-IoT sketch program on that board.