From 178ec52640009d0ef44b4455538a4a51fb622e57 Mon Sep 17 00:00:00 2001 From: Timur Iskhodzhanov Date: Sat, 30 Jan 2021 14:16:17 -0800 Subject: [PATCH] Extract the device name into a constant at the top of the file to make it easier to change --- RaceChronoDiyBleDevice.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/RaceChronoDiyBleDevice.ino b/RaceChronoDiyBleDevice.ino index ad48466..41ff664 100644 --- a/RaceChronoDiyBleDevice.ino +++ b/RaceChronoDiyBleDevice.ino @@ -1,6 +1,8 @@ #include #include +#define DEVICE_NAME "BLE CAN device demo" + // Connections: // MCP | BOARD // INT | Not used, can connect to Pin 9 @@ -185,7 +187,7 @@ void setup() { } Serial.println("Setting up BLE..."); - RaceChronoBle.setUp("BLE CAN device demo", &raceChronoHandler); + RaceChronoBle.setUp(DEVICE_NAME, &raceChronoHandler); RaceChronoBle.startAdvertising(); Serial.println("BLE is set up, waiting for an incoming connection.");