Wireless Communication Library Support Forum
Frameworks => Bluetooth Framework => Topic started by: parparpar 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
-
Hi,
Read name few time until it return valid name (let say 5)
-
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;
-
Yes, something like that.