cesanta / mongoose-os

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.
https://mongoose-os.com
Other
2.51k stars 429 forks source link

Compilation fails if cdefs has MGOS_ENABLE_WEB_CONFIG: 1 #469

Closed zdila closed 4 years ago

zdila commented 5 years ago

If I set MGOS_ENABLE_WEB_CONFIG: 1 in cdefs then compilation fails with following error:

/home/martin/app/deps/http-server/src/mgos_http_server.c: In function 'ro_vars_handler':
/home/martin/app/deps/http-server/src/mgos_http_server.c:146:13: error: 'mgos_sys_ro_vars' undeclared (first use in this function)
   send_cfg(&mgos_sys_ro_vars, mgos_ro_vars_schema(), hm, c);

Reference: https://forum.mongoose-os.com/discussion/4262/compilation-fails-if-cdefs-has-mgos-enable-web-config-1