Define Bluetooth NetworkInterface from Java?

I need to access the bluetooth network interface from Java. All local network interfaces are accessed through:

Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces();

      

This enum will contain network cards, usb network devices, etc. and I need to get bluetooth network interface in particular. One bad solution is to iterate over and parse the display name of each device for "bluetooth", but he's not sure if this will work for all bluetooth interfaces. Does anyone know a better way, perhaps by doing some research?

+1


source to share


1 answer


I suppose the "cleanest way" would be to use JSR 82 that ships with the LocalDevice class .

LocalDevice.getLocalDevice() 

      



A project like BlueCove can do the trick.

+1


source







All Articles