me-no-dev / AsyncTCP

Async TCP Library for ESP32
GNU Lesser General Public License v3.0
757 stars 439 forks source link

cannot set CONFIG_ASYNC_TCP_RUNNING_CORE from outside #79

Closed alorbach closed 4 years ago

alorbach commented 5 years ago

Maybe I am to stupid today, but If I define CONFIG_ASYNC_TCP_RUNNING_CORE before including AsyncTCP.h, it does not have any affect at all:

# define CONFIG_ASYNC_TCP_RUNNING_CORE 0
# include <AsyncTCP.h>

Itz still runs into the ifndef block in AsyncTCP.h

#ifndef CONFIG_ASYNC_TCP_RUNNING_CORE
#define CONFIG_ASYNC_TCP_RUNNING_CORE -1 //any available core
#define CONFIG_ASYNC_TCP_USE_WDT 1 //if enabled, adds between 33us and 200us per event
#endif
andrea-daru commented 5 years ago

I've the same problem.. @alorbach have you find a solution? The only workaround I've found it's to modify the library

alorbach commented 5 years ago

Yes that is what I did finally, i modified CONFIG_ASYNC_TCP_RUNNING_CORE default in AsyncTCP.h

bertmelis commented 5 years ago

Use platformio to build your "sketches" and set a build flag like it's done here: https://docs.platformio.org/en/latest/platforms/espressif32.html#debug-level

alorbach commented 5 years ago

Does this work with Arduino IDE?

bertmelis commented 5 years ago

no

stale[bot] commented 4 years ago

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.