Browse Source

Making name of a2dp-sink configurable via settings.h

master
Torsten Stauder 4 years ago
parent
commit
ba906b8d6d
  1. 2
      src/main.cpp
  2. 1
      src/settings.h

2
src/main.cpp

@ -4542,7 +4542,7 @@ void setup() {
.data_in_num = I2S_PIN_NO_CHANGE .data_in_num = I2S_PIN_NO_CHANGE
}; };
a2dp_sink->set_pin_config(pin_config); a2dp_sink->set_pin_config(pin_config);
a2dp_sink->start("ESPuino");
a2dp_sink->start((char *) FPSTR(nameBluetoothDevice));
} else { } else {
esp_bt_mem_release(ESP_BT_MODE_BTDM); esp_bt_mem_release(ESP_BT_MODE_BTDM);
#endif #endif

1
src/settings.h

@ -80,6 +80,7 @@ uint16_t intervalToLongPress = 700; // Interval in ms to disting
// ESPuino will create a WiFi if joing existing WiFi was not possible. Name can be configured here. // ESPuino will create a WiFi if joing existing WiFi was not possible. Name can be configured here.
static const char accessPointNetworkSSID[] PROGMEM = "ESPuino"; // Access-point's SSID static const char accessPointNetworkSSID[] PROGMEM = "ESPuino"; // Access-point's SSID
static const char nameBluetoothDevice[] PROGMEM = "ESPuino"; // Name of your ESPuino as Bluetooth-device
// Where to store the backup-file for NVS-records // Where to store the backup-file for NVS-records
static const char backupFile[] PROGMEM = "/backup.txt"; // File is written every time a (new) RFID-assignment via GUI is done static const char backupFile[] PROGMEM = "/backup.txt"; // File is written every time a (new) RFID-assignment via GUI is done

Loading…
Cancel
Save