You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create simple tasks to produce a variable (representing some sensor input), consume a variable (representing functions that use the sensor input), and binding these two (produce and consume) tasks for a meaningful interaction.
We will use temperature value for producing and consuming tasks.
Producer Task: will create a static variable "temperature" and set a value for it then it will be send as an IMC message.
Consumer Task: will keep searching in the BUS for the variable "temperature" and print it on the screen.
Producer and Consumer Task interaction: Here, the consumer will consume the temperature variable from the producer task to display the temperature value. Later we will do advanced task interactions.