Esp32 multitasking global variables