Author Topic: Getting BLuetooth device names  (Read 3717 times)

faivre

  • Newbie
  • *
  • Posts: 2
    • View Profile
Getting BLuetooth device names
« on: July 27, 2008, 08:49:05 pm »
What is a good way to have the bluetooth device name show in a nrDeviceBox after nrBT.Update is called. It seems that Update needs to be called 2 times. Thanks.

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Getting BLuetooth device names
« Reply #1 on: July 28, 2008, 07:33:25 am »
Hello

The nrDeviceBox control automatically refreshes content after TnrBt.Update() call.
Possible you call Update() method when a needed BT adapter is not installed by system.

Please note that, if you are processing WM_DEVICECHAGE system message, you can call TnrBt.WMDeviceChange() method instead the TnrBt.Update().

Roman Novgorodov
DeepSoftware.com
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

faivre

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Getting BLuetooth device names
« Reply #2 on: July 29, 2008, 04:49:10 pm »
Yes, the nrDeviceBox will update. However, if it is the first time a device is found the text in the nrDeviceBox will be empty. The device was found, and a entry is made in nrDeviceBox but it is an empty string -until the next Update. The PCs Bluetooth hardware is installed and recongnized by Windows (XP or Vista - no difference). Using v8.04. Any advise will be helpful. Question: How do I get updates? Thank you. 

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Getting BLuetooth device names
« Reply #3 on: July 29, 2008, 06:07:57 pm »
Hello

We can not repeat this problem. Do you use the BTDemo project?

Maybe the TnrBT.DeviceIndex is -1. In this case nrDeviceBox control shows nothing, but drop down list is filled by device names.


If you are registered user you should ask us over email, inform your registration name and date of order and
you will get latest version of product free.

Roman Novgorodov
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.