In the simple chatter example, there is chatter.publish( &str_msg ); in the loop statement. Does this send the str_msg every time the loop executes, or every time someone listens for it?
In other words, I would like to make a status string, that the user can request, and it will send. I dont want it to be send every time, but whenever it is requested for.
There are also cases where I would like to send a parameter to the board, and get a result from it. (Like for setting PID variables)
Any ideas/recomendations/help greatly appreciated.
Hello,
Is it possible to make a rosservice with energia?
In the simple chatter example, there is chatter.publish( &str_msg ); in the loop statement. Does this send the str_msg every time the loop executes, or every time someone listens for it?
In other words, I would like to make a status string, that the user can request, and it will send. I dont want it to be send every time, but whenever it is requested for.
There are also cases where I would like to send a parameter to the board, and get a result from it. (Like for setting PID variables)
Any ideas/recomendations/help greatly appreciated.