Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
If this yet another case of cout /cerr not synchronizing with code flow - PLEASE IGNORE my post.

When I use "hcitool scan" as CLI it outputs "Scanning..." immediately , then after expected delay outputs the scan result.


Scanning ...
98:D3:31:F8:39:33 SPP-CA


When implementing hcitool as system call

system("hcitool scan");

the outputs are NOT separated - in time - they are posted to console AFTER the actual scan is completed.

Is there a way to option system call to hcitool scan to output the "progress message" ?

What I have tried:

I have used Qt bluetooth scanning code and it does not do the job, hence I am replacing it with system calls. It would be nice to catch the "Scanning..." signal / event somehow. Qt does have that option.
Posted
Updated 12-Sep-20 20:57pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900