Pinoccio / library-pinoccio

Arduino library for Pinoccio
Other
28 stars 24 forks source link

Feature Request: implement mesh.join(troopId)? #192

Open ghost opened 10 years ago

ghost commented 10 years ago

I find it annoying that I have to manually change mesh.config(, troopId, channel) to each of my scouts. Can we have a mesh.joinTroop(troopId) implemented so we can just join any troop and have a unique scoutId assigned to each scouts?

jingman commented 10 years ago

We could (and eventually will) add this kind of utility function in the CLI, but it isn't possible in ScoutScript, since the Scout doesn't know what id to give itself, and/or what the mesh key is. The Scout ids have to be integers (can't be random unique strings) which are incremented and tracked outside of the mesh (in Carlo).