First IoT Cloud project Fails to compile

Just trying out the IoT Cloud service and right away it doesn't compile.
I copied the thingProperties.h file right off the editor example. I'm using a generic We Mos D1 mini.

Error:
/usr/local/bin/arduino-cli compile --fqbn esp8266:esp8266:d1_mini:baud=921600,dbg=Disabled,eesz=4M,exception=disabled,ip=lm2f,lvl=None____,vt=flash,wipe=none,xtal=80 --libraries /home/builder/opt/libraries/latest --build-cache-path /tmp --output-dir /tmp/442686455/build --build-path /tmp/arduino-build-1180CF2A202A06C3B8FFD62343FD0293 /tmp/442686455/PoolTemp_V1

Using library arduino_debugutils_1_1_0 at version 1.1.0 in folder: /home/builder/opt/libraries/arduino_debugutils_1_1_0

Using library arduinomqttclient_0_1_5 at version 0.1.5 in folder: /home/builder/opt/libraries/arduinomqttclient_0_1_5

xtensa-lx106-elf-gcc: error: /tmp/arduino-build-1180CF2A202A06C3B8FFD62343FD0293/libraries/esp8266/esp8266.a: No such file or directory

Sample Code:

#include <dummy.h>

#include <Arduino.h>
#include <Arduino.h>
#include <ESP8266WiFi.h>
//#include "fauxmoESP.h"
//#include <ESPAsyncTCP.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include "thingProperties.h"



#define SERIAL_BAUDRATE 115200

#define WIFI_SSID "********"
#define WIFI_PASS "*******"


#define ONE_WIRE_BUS 4
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);

const char* ssid = "YOUR_WIFI_NAME";
const char* password = "YOUR_WIFI_PASS";


// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
  
  
  // 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);
  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();
  
  
  
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second

  ArduinoCloud.update();
  
  
}

Take a look at https://docs.arduino.cc/cloud/iot-cloud/tutorials/iot-cloud-getting-started and https://support.arduino.cc/hc/en-us/articles/360016077320-What-devices-can-be-used-with-Arduino-IoT-Cloud-

I was on the wrong pin. for a WeMos D1 Mini GPIO2 = D4. I was expecting 4 to equal 4

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.