Connect to multiple Beans in the area.
I have a bunch of Beans that I need to connect to simultaneously. Looking through the example and the board object it appears that it always grabs the first it can find. Is there a way to tell it not to?
Thanks.
I realize that this is probably a trivial issue, but do you have any suggestions?
sorry, i missed this earlier. You can definitely specify which bean to connect to. Just pass in a specific uuid when creating a board instance:
var board = new beanio.Board({uuid: 'xxxx-myUuid-xxxx'});
Thanks, Is it possible to have it autodiscover all the Beans and create an instance for each one it sees in the vicinity (Like it does with the first one, and then stops the search.)? I have nine Beans right now and don't want to hard-code their UUIDs, as this would keep things more dynamic.
Should be pretty easy to write some code to do that, but It would have to be a new API on top of this. Problem is that the IO classes for Johnny-Five are pretty much singletons. Each one represents the connection to a robot instance.