Mongoose OS - an IoT Firmware Development Framework. Supported microcontrollers: ESP32, ESP8266, CC3220, CC3200, STM32F4, STM32L4, STM32F7. Amazon AWS IoT, Microsoft Azure, Google IoT Core integrated. Code in C or JavaScript.
CC /fwbuild-volumes/1.26/apps/firmware/esp32/build_contexts/build_ctx_988615689/build/objs/ffi_exports.o
/fwbuild-volumes/1.26/apps/firmware/esp32/build_contexts/build_ctx_988615689/build/gen/ffi_exports.c:29:6: error: conflicting types for 'getCO2'
int getCO2(void);
^
/fwbuild-volumes/1.26/apps/firmware/esp32/build_contexts/build_ctx_988615689/build/gen/ffi_exports.c:28:6: note: previous declaration of 'getCO2' was here
void getCO2(void);
^
Hi,
i get the following message during compile:
In my mos.yml I have declared
My main.h contains
init.js
Maybe this issue is related to https://github.com/cesanta/mjs/issues/28? Is my code wrong or is there a bug when writing the ffi_exports.c file?
thanks in advance!