Azure esp8266 errors

hello I'm trying to upload this sketch ( GitHub - Azure-Samples/iot-hub-feather-huzzah-client-app: Application collects weather data from a DHT22 sensor and sends it to IoT hub, also take actions according to cloud-to-device message.) but I got this error :

Arduino: 1.8.16 (Mac OS X), Board: "Adafruit Feather HUZZAH ESP8266, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 115200"











In file included from /Users/ai/Documents/Arduino/libraries/AzureIoTUtility/src/azure_c_shared_utility/constbuffer.h:16,
                 from /Users/ai/Documents/Arduino/libraries/AzureIoTHub/src/internal/iothub_client_private.h:9,
                 from /Users/ai/Documents/Arduino/libraries/AzureIoTHub/src/iothub_client_ll_uploadtoblob.c:20:
/Users/ai/Documents/Arduino/libraries/AzureIoTUtility/src/umock_c/umock_c_prod.h:114:30: error: pasting "MOCKABLE_" and "/*this creates a new constbuffer from a memory area*/" does not give a valid preprocessing token
  114 | #define EXPAND_PROD_ENTRY(A) MOCKABLE_##A
      |                              ^~~~~~~~~
/Users/ai/Documents/Arduino/libraries/AzureIoTHub/src/azure_macro_utils/macro_utils_generated.h:9020:1: note: in expansion of macro 'EXPAND_PROD_ENTRY'
 9020 | X(P1) \
      | ^
/Users/ai/Documents/Arduino/libraries/AzureIoTUtility/src/umock_c/azure_macro_utils/macro_utils.h:35:21: note: in expansion of macro 'MU_FOR_EACH_1_9'
   35 | #define MU_C2_(x,y) x##y
      |                     ^
/Users/ai/Documents/Arduino/libraries/AzureIoTUtility/src/umock_c/umock_c_prod.h:119:5: note: in expansion of macro 'MU_FOR_EACH_1'
  119 |     MU_FOR_EACH_1(EXPAND_PROD_ENTRY, __VA_ARGS__)
      |     ^~~~~~~~~~~~~
/Users/ai/Documents/Arduino/libraries/AzureIoTUtility/src/azure_c_shared_utility/constbuffer.h:35:1: note: in expansion of macro 'MOCKABLE_INTERFACE'
   35 | MOCKABLE_INTERFACE(constbuffer,
      | ^~~~~~~~~~~~~~~~~~
/Users/ai/Documents/Arduino/libraries/AzureIoTUtility/src/umock_c/umock_c_prod.h:114:30: error: pasting "MOCKABLE_" and "/*this creates a new constbuffer from an existing BUFFER_HANDLE*/" does not give a valid preprocessing token
  114 | #define EXPAND_PROD_ENTRY(A) MOCKABLE_##A
      |                              ^~~~~~~~~
/Users/ai/Documents/Arduino/libraries/AzureIoTHub/src/azure_macro_utils/macro_utils_generated.h:9024:1: note: in expansion of macro 'EXPAND_PROD_ENTRY'
 9024 | X(P1) \
      | ^
/Users/ai/Documents/Arduino/libraries/AzureIoTHub/src/azure_macro_utils/macro_utils_generated.h:9021:1: note: in expansion of macro 'MU_FOR_EACH_1_8'
 9021 | MU_FOR_EACH_1_8(X, P2, P3, P4, P5, P6, P7, P8, P9)
      | ^~~~~~~~~~~~~~~
/Users/ai/Documents/Arduino/libraries/AzureIoTUtility/src/umock_c/azure_macro_utils/macro_utils.h:35:21: note: in expansion of macro 'MU_FOR_EACH_1_9'
   35 | #define MU_C2_(x,y) x##y
      |                     ^
/Users/ai/Documents/Arduino/libraries/AzureIoTUtility/src/umock_c/umock_c_prod.h:119:5: note: in expansion of macro 'MU_FOR_EACH_1'
  119 |     MU_FOR_EACH_1(EXPAND_PROD_ENTRY, __VA_ARGS__)
      |     ^~~~~~~~~~~~~
/Users/ai/Documents/Arduino/libraries/AzureIoTUtility/src/azure_c_shared_utility/constbuffer.h:35:1: note: in expansion of macro 'MOCKABLE_INTERFACE'
   35 | MOCKABLE_INTERFACE(constbuffer,
      | ^~~~~~~~~~~~~~~~~~
/Users/ai/Documents/Arduino/libraries/AzureIoTHub/src/iothub_client_ll_uploadtoblob.c:26:10: fatal error: internal/blob.h: No such file or directory
   26 | #include "internal/blob.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Error compiling for board Adafruit Feather HUZZAH ESP8266.


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.```

your help really appreciate

For the quickest answer, try the Adafruit support website/forum.

https://forums.adafruit.com/

1 Like

Thank you for support :grinning: