Skip to content

Commit

Permalink
Updated to new SoftwareSerial calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik Holst committed Apr 25, 2020
1 parent ad12eb2 commit 43c6f83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RobotanBT/RobotanBT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

const uint32_t baud_rates[] = {9600, 38400, 57600, 115200};

SoftwareSerial BluetoothSerial(2, 0, false, 256);
SoftwareSerial BluetoothSerial;

void setup(void) {
Serial.begin(38400);

for (int x = 0; x < 4; x++) {
BluetoothSerial.begin(baud_rates[x]);
BluetoothSerial.begin(baud_rates[x], SWSERIAL_8N1, 2, 0, false, 256);
Serial.print("\nRobotan Bluetooth module configuration starts at ");
Serial.println(baud_rates[x]);
BluetoothSerial.println("AT+NAME=\"Robot\"");
Expand Down

0 comments on commit 43c6f83

Please sign in to comment.