In your application, override createIOIOLooper(String connectionType,
Object extra) instead of createIOIOLooper(). It will get called for every
possible IOIO connection, and specifically, for every paired IOIO. The
first argument will tell you the connection type (for
Bluetooth: ioio.lib.android.bluetooth.BluetoothIOIOConnection) and the
second argument will by an object array containing 2 string: the device
name and device address).
You can have your method return null if you don't want a connection to be
established with that IOIO at all. Alternatively, you can return a looper
and pass it the device name, so you can change the behavior later.

On Sat, Oct 25, 2014 at 7:44 AM, Ian Molesworth <[email protected]>
wrote:

> How do I retrieve the serial number/address from the BT dongle?
>
> Once I've done that how do I go about making one or the other BT
> connection the active one?
>
> I have an app which will perform the same controls on the ioio but at any
> one time I may be connected to more than one ioio. I want to be able to
> select which one is the active one.
>
> lets say i am controlling a camera pan and tilt, there may be several
> cameras in range, i want to select camera A give it some commends, move on
> to camera B and do something different etc.
>
> Thx
>
> --
> You received this message because you are subscribed to the Google Groups
> "ioio-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/ioio-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to