robertoprato / bluecove

Automatically exported from code.google.com/p/bluecove
0 stars 0 forks source link

RemoveDevice.getFriendlyName(true) return null on widcomm stack. #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1.Search for remove device (E.G:
discoveryAgent.startInquiry(DiscoveryAgent.GIAC, listener))
2. Get name of the device.
3. On widcomm stack name is null. 

BlueCove version 2.0.0-b2
OS version: WindowXP SP2

Original issue reported on code.google.com by shyshkin...@gtempaccount.com on 5 Jul 2007 at 1:31

GoogleCodeExporter commented 8 years ago
getFriendlyName
     * @return the name of the device, or <code>null</code> if the
     * Bluetooth system does not support this feature; if the local device
     * is able to contact the remote device, the result will never be
     * <code>null</code>; if the remote device does not have a name
     * then an empty string will be returned

solution is to wait until discovery ended. By this time name may be avalable.

Original comment by skarzhev...@gmail.com on 5 Jul 2007 at 3:38

GoogleCodeExporter commented 8 years ago
There  is chance that device discovered more then once during Inquiry.
If second time the name appear it would be updated in device class.
fixed

Original comment by skarzhev...@gmail.com on 5 Jul 2007 at 10:33