我想知道如何在android中获取所连接的蓝牙设备的名称
NetworkInfo bluetooth = connectivityManager .getNetworkInfo(ConnectivityManager.TYPE_BLUETOOTHToast.makeText(myprofile3Context,"bluetooth is connected", Toast.LENGTH_SHORT).show();
我想使用任何移动电话通过蓝牙经典与串行端口协议(SPP)连接到IoT设备。IoT设备没有屏幕和键盘,只要连接的手机知道一个秘密的PIN码,它就会自动接受连接(即,我不想每次新手机尝试连接时都被强制ssh到IoT设备来设置配对)。以下是我到目前为止在IoT设备上运行的命令:
# Make the device d