how to broadcast data with length n to all tasks running with different priority in freertos? once broadcast data will be picked up by all task, it should be deleted, so that whenever new data comes, it should be broadcast to all task. new data should appear to all task not old data. how can i do this? Please can someone help me to achieve this?
The closest I can think of easily is an Event Group. It will notify all the tasks currently waiting on it that new data is ready, and they will all then proceed as they get time, but they will block again when they return to the Event Group.
The actual data will just sit in a global somewhere. The data won’t actually get deleted, just the flag that new data is available.
If you need something more complicated, I think you will need to write it yourself.