Bluetooth - Getting Device Name Connected

Hello,

I have looked everywhere and cant seem to find an example of how to get the device name that is connected to the blue tooth arduino.

I have a OSEPP Bluetooth Arduino and an OSEPP LCD Keypad Shield

I am able to write to the display but I would like to write the name of the device that is connected to the Arduino. (the arduino is paired and I am able to write out to the device but I am trying to get the blue tooth name of all devices connected to it and display them on the lcd)

#include <LiquidCrystal.h>

LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

void setup() 
{
  lcd.begin(16, 2);
  Serial.begin(115200);
}

void loop() 
{
    lcd.setCursor(0, 0);
    lcd.print("test message");
}

Someone has to know how to list the bluetooth devices connected to the arduino.

Not necessarily. Most users can get on well without the knowledge - particularly since only one bluetooth device can actually be connected at a time, and arduino usually operates as a slave.

I believe you are entering the realm of Arduino operating as a blue tooth master, a realm where very few users venture. The OSEPP crowd and blue giga seem to be rather backward in coming forward about that situation, to the point that it is far from clear to the casual observer that the device is capable of operating in that mode. If it is, this might be helpful.

Another avenue of research is googling arduino and gamepads, where the latter is always a slave.

Your code is meaningless but might imply that you have already configured the bluetooth, as I doubt it runs at that speed by default.