AsyncUDP in an ESP32 project, where I initialize
AsyncUDP udpSender and call
udpSender.write(sendbuffer, sendbuffer_size) from both cores, with different buffers on each core.
One core is continually collecting GY-91 (accel/gyro/magnet) sensor data many times a second and sending it via UDP multiple times a second (after every collection), and the other one is collecting some other data like temperature once a second, as well as responding to commands a server sends.
So I'm basically using one sender on both cores and wondering if this is "thread-safe", if that terminology even applies to this scenario.
Can this cause problems? Is there a specific way this should be done? Like using semaphores?