Doesn't look like pairing is the problem. Paired two bluetooths and have them stored in Amarino but still can't modify SensorGraph to connect to both.
To define the the addresses I have
public class SensorGraph extends Activity {
private static final String TAG = "SensorGraph"
private static final String DEVICE_ADDRESS = "00:06:66:05:61:E4"
private static final String DEVICE_ADDRESS_2 = "00:12:11:28:13:50"
private GraphView mGraph:
private GraphView mgraph2;
private TextView mValueTV;
private ArduinoReceiver arduinoReceiver = new ArduinoReceiver();
private ArduinoReceiver2 arduinoReceiver2 = new ArduinoReceiver();
...
And then later on to connect I have
@Override
protected void onStart() {
super.onStart();
registerReceiver(arduinoReceiver, new IntentFilter(AmarinoIntent.ACTION_RECEIVED));
Amarino.connect(this, DEVICE_ADDRESS);
registerReceiver(arduinoReceiver2, new IntentFilter(AmarinoIntent.ACTION_RECEIVED2));
Amarino.connect(this, DEVICE_ADDRESS_2);
}
And when it runs I get a popup on the phone stating
Sorry!
The application Amarino 2.0 (process at.abraxas.amarino) has stopped unexpectedly. Please try again.
Any thoughts?
On Monday, May 13, 2013 11:02:48 AM UTC-7, Bonifaz wrote: