Azure / azure-iot-arduino

Azure IoT library for the Arduino
Other
167 stars 96 forks source link

Can't compile latest release 1.3.6 #101

Closed Tintin4000 closed 4 years ago

Tintin4000 commented 4 years ago

While trying to compile the library I got the following compilation error iothub_client_ll_uploadtoblob.c: 26:27: fatal error: internal/blob.h: No such file or directory

include "internal/blob.h".

Seems like the file blob.h is missing.

jbobotek commented 4 years ago

Please read the readme to see how to set up. https://github.com/Azure/azure-iot-arduino#simple-sample-instructions

Tintin4000 commented 4 years ago

Sorry for the previous post, indeed once the instructions were followed no compiling issue anymore. Thanks.

wesgarbee commented 4 years ago

I am having this same issue. I have followed the instructions several times, in several different examples, and I keep getting the same error as OP.

I have added the flags: # This can be overriden in boards.txt build.extra_flags=-DESP8266, -DDONT_USE_UPLOADTOBLOB, -DUSE_BALTIMORE_CERT

I commented out the #define Round(): // #define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))

I am using 1.8.11 Arduino IDE and VSCode on Win10. I can provide the entire stack trace if that would help.

Update: after much digging, it would seem that either I wasn't editing the correct build.extras in the correct file (although I'mm 99% certain I was) or I wasn't saving. Regardless, I am close to being able to verify save a few unrelated compile errors.