jandelgado / esp32-aws-iot

Use AWS IoT with the ESP32
26 stars 16 forks source link

Add compontent.mk for esp-idf #1

Closed AaronVerDow closed 5 years ago

AaronVerDow commented 5 years ago

I'm trying to use this in a project in esp-idf with ardunio-esp32 per:

https://github.com/espressif/arduino-esp32/blob/master/docs/esp-idf_component.md

This is my main.cpp file that is loaded by the arduino-esp32 component:

#include "Arduino.h"
#include "esp_camera.h"
#include <AWS_IOT.h>

void setup(){
      Serial.begin(115200);
}

void loop(){
      Serial.println("loop");
        delay(1000);
}

As is I get an error importing AWS_IOT.h:

fatal error: AWS_IOT.h: No such file or directory

If I add component.mk (below) to the root of esp32-aws-iot then AWS_IOT.h is found and everything works.

COMPONENT_ADD_INCLUDEDIRS := src
AaronVerDow commented 5 years ago

Closing in favor of pull request: https://github.com/jandelgado/esp32-aws-iot/pull/2