This project has moved and is read-only. For the latest updates, please go here.

How do know batchcommand execute finish on brick?

Nov 18, 2013 at 7:56 PM
Same as title.

When I send a lot of command(not in same batch) to brick, brick does not execute every command!

Should I need to know the last command has been executed by brick?
Nov 19, 2013 at 3:33 AM
If you send many DirectCommands in succession, there's a good chance you'll flood the brick and it will miss some commands. If you use a BatchCommand and batch multiple items, then await the SendCommandAsync method, that entire batch will be sent at once. However, the same issue can arise here....if you send many batches in succession, there's a chance you'll flood the brick and it won't be able to keep up.

Unfortunately there isn't a great way to determine if the brick has executed the entire program of commands...we send them and the brick does its thing. My only suggestion is to slow down how frequently you're sending commands to the brick.
Nov 19, 2013 at 4:50 AM
OK! Thanks for your reply.