I am trying to have an Arduino Bluetooth dev board pair with a USB bluetooth adapter and take commands from a Java GUI via serial. However, the problem that I am encountering is that when I view the serial monitor for the Arduino BT board, I notice that it never enters the setup() that I wrote (which initializes some important parts of the program. The board was programmed using the Arduino IDE, and monitored using Putty (the baud rate was 115200).
Can anyone offer me some insight into why my setup code doesn't run?
Basically, to paraphrase what I've already detailed, it only displays "Awaiting commands." It never displays the two Serial.println statements within the setup()
void setup()
{
// join i2c bus (address optional for master)
Serial.begin(115200); // start serial for output
delay(1000);
Serial.println("#Initializing MAPPER master");
Wire.begin();
Serial.println("Setup finished");
}
void loop()
{
awaitCommands();
Serial.println("#Awaiting commands...");
delay(1000);
}