Hi Thank you for the comment. As you said I updated the library and it solved the "BSEC_OUTPUT_IAQ_ESTIMATE" issue. However, now I'm getting a different error. It seems the compiler cannot find the declaration of the functions in bsec_integration.h, despite the fact that it is included in the main project file. should I set something in the Arduino IDE? Here is the list of errors: Arduino: 1.8.11 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None" bsec_iot_example:145:25: error: ambiguating new declaration of 'void sleep(uint32_t)' void sleep(uint32_t t_ms) ^ In file included from C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4/tools/sdk/include/newlib/stdio.h:29:0, from C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32/Arduino.h:27, from sketch\bsec_iot_example.ino.cpp:1: C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4/tools/sdk/include/newlib/sys/unistd.h:185:10: note: old declaration 'unsigned int sleep(unsigned int)' unsigned _EXFUN(sleep, (unsigned int __seconds )); ^ E:\Sketchbook\libraries\bsec_iot_example\bsec_iot_example.ino: In function 'void sleep(uint32_t)': bsec_iot_example:145:25: error: ambiguating new declaration of 'void sleep(uint32_t)' void sleep(uint32_t t_ms) ^ In file included from C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4/tools/sdk/include/newlib/stdio.h:29:0, from C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32/Arduino.h:27, from sketch\bsec_iot_example.ino.cpp:1: C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4/tools/sdk/include/newlib/sys/unistd.h:185:10: note: old declaration 'unsigned int sleep(unsigned int)' unsigned _EXFUN(sleep, (unsigned int __seconds )); ^ E:\Sketchbook\libraries\bsec_iot_example\bsec_iot_example.ino: In function 'void setup()': bsec_iot_example:261:103: error: invalid conversion from 'unsigned int (*)(unsigned int)' to 'sleep_fct {aka void (*)(unsigned int)}' [-fpermissive] ret = bsec_iot_init(BSEC_SAMPLE_RATE_LP, 0.0f, bus_write, bus_read, sleep, state_load, config_load); ^ In file included from E:\Sketchbook\libraries\bsec_iot_example\bsec_iot_example.ino:78:0: sketch\bsec_integration.h:141:20: note: initializing argument 5 of 'return_values_init bsec_iot_init(float, float, bme680_com_fptr_t, bme680_com_fptr_t, sleep_fct, state_load_fct, config_load_fct)' return_values_init bsec_iot_init(float sample_rate, float temperature_offset, bme680_com_fptr_t bus_write, bme680_com_fptr_t bus_read, ^ bsec_iot_example:277:75: error: invalid conversion from 'unsigned int (*)(unsigned int)' to 'sleep_fct {aka void (*)(unsigned int)}' [-fpermissive] bsec_iot_loop(sleep, get_timestamp_us, output_ready, state_save, 10000); ^ In file included from E:\Sketchbook\libraries\bsec_iot_example\bsec_iot_example.ino:78:0: sketch\bsec_integration.h:155:6: note: initializing argument 1 of 'void bsec_iot_loop(sleep_fct, get_timestamp_us_fct, output_ready_fct, state_save_fct, uint32_t)' void bsec_iot_loop(sleep_fct sleep, get_timestamp_us_fct get_timestamp_us, output_ready_fct output_ready, ^ bsec_iot_example:277:75: error: invalid conversion from 'void (*)(int64_t, float, uint8_t, float, float, float, float, float, float, bsec_library_return_t) {aka void (*)(long long int, float, unsigned char, float, float, float, float, float, float, bsec_library_return_t)}' to 'output_ready_fct {aka void (*)(long long int, float, unsigned char, float, float, float, float, float, float, bsec_library_return_t, float, float, float)}' [-fpermissive] bsec_iot_loop(sleep, get_timestamp_us, output_ready, state_save, 10000); ^ In file included from E:\Sketchbook\libraries\bsec_iot_example\bsec_iot_example.ino:78:0: sketch\bsec_integration.h:155:6: note: initializing argument 3 of 'void bsec_iot_loop(sleep_fct, get_timestamp_us_fct, output_ready_fct, state_save_fct, uint32_t)' void bsec_iot_loop(sleep_fct sleep, get_timestamp_us_fct get_timestamp_us, output_ready_fct output_ready, ^ exit status 1 ambiguating new declaration of 'void sleep(uint32_t)' This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
... View more