Wireless Communication Library Support Forum
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
Wireless Communication Library Support Forum
»
Frameworks
»
Bluetooth Framework
»
read "Devices[I].Address" is normal, but read "aName" is empty the contents ?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: read "Devices[I].Address" is normal, but read "aName" is empty the contents ? (Read 15924 times)
parparpar
Guest
read "Devices[I].Address" is normal, but read "aName" is empty the contents ?
«
on:
January 05, 2010, 11:10:30 AM »
aName : Without name
I use Delphi7\WCL671\VCL\demo\Delphi\BluetoothOPP example of a successful compile run.
In the run to the "Res:= Devices
.GetName(Radio, aName);" After this line, read "Devices
.Address" is normal, but it reads "aName" is empty the contents
, "Res " is WCL_E_SUCCESS
Why?
Thanks
Logged
Mike Petrichenko
Bluetooth Framework Developer
Administrator
Hero Member
Posts: 3675
Karma: 1000
Re: read "Devices[I].Address" is normal, but read "aName" is empty the contents ?
«
Reply #1 on:
January 05, 2010, 11:45:53 AM »
Hi,
Read name few time until it return valid name (let say 5)
Logged
Bluetooth Framework
IrDA Framework
Serial Framework
WiFi Framework
parparpar
Guest
Re: read "Devices[I].Address" is normal, but read "aName" is empty the contents ?
«
Reply #2 on:
January 05, 2010, 02:38:41 PM »
Thank you for your reply !
while Cnt < 5 do begin
Sleep(100); // So?
Res := Devices
.GetName(Radio, aName);
if (aName <> '') or (Res <> WCL_E_SUCCESS) then Break;
Inc(Cnt);
end;
Logged
Mike Petrichenko
Bluetooth Framework Developer
Administrator
Hero Member
Posts: 3675
Karma: 1000
Re: read "Devices[I].Address" is normal, but read "aName" is empty the contents ?
«
Reply #3 on:
January 05, 2010, 04:30:52 PM »
Yes, something like that.
Logged
Bluetooth Framework
IrDA Framework
Serial Framework
WiFi Framework
Print
Pages: [
1
]
Go Up
« previous
next »
Wireless Communication Library Support Forum
»
Frameworks
»
Bluetooth Framework
»
read "Devices[I].Address" is normal, but read "aName" is empty the contents ?
Sitemap
1
2
3
4
5
6
7