• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 

How to ignore incoming bluetooth data

Started by YukonPete, February 10, 2012, 01:06:42 pm

Previous topic - Next topic

YukonPete

In our application we read an RFID tag via bluetooth. When we read the tag, the application may be busy.  If the user scans another tag while the application is busy, we want to ignore the incoming bluetooth data (not process it). Once the application is not longer busy the user would need to rescan the tag and send the data again.  In other words there are times we simply want to ignore the incoming data from bluetooth.

How do we do this?

Thanks,
Lee

Roman Novgorodov

Hello

You can change Active property of TnrBt component for disable it while your app is busy.

Also you can try following code:

procedure TForm1.nrBT1AfterReceive(Com: TObject; Buffer: Pointer;
  Received: Cardinal);
begin
  if IsMyApplicationBusy() then exit;
  // handle incoming data ...  ...
  ...
  ...
end;


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