I-CUBE-wolfMQTT example code uses LwIP's sockets despite not using FreeRTOS.
I added I-CUBE-wolfMQTT and I-CUBE-wolfSSL software packs to my STM32CubeIDE project in CubeMX built into CubeIDE. In CubeMX I set parameters:
- for wolfSSL:
- RTOS - Single THreaded (no RTOS / Baremetal)
- IO interface - LWIP (native API)
- for wolfMQTT:
- FREERTOS Support - False
- IO - LWIP
Despite that, trying to compile project ends up with errors like "'SOL_SOCKET' undeclared (first use in this function)" or "'AF_INET' undeclared (first use in this function)". It is because example code uses sockets from LwIP library which can't be used if FreeRTOS is disabled. Even in lwipopts.h LWIP_SOCKET is defined to 0 and you can't enable it in CubeMX if NO_SYS (OS Awarness) is set to OS Not Used.
Am I missing something? Did I misconfigure settings in CubeMX or are provided examples just wrong?
