Page 1 of 1
MergEXT -How to stop scanning using MergBLE
Posted: Thu Feb 11, 2016 3:41 am
by michaeldaleyjl
Started scanning with mergBLEScanForPeripheralsWithServices.
Tried stopping the scan with mergBLEStopScanningForPeripherals, but the scanning continues.
What am I doing wrong?
Re: MergEXT -How to stop scanning using MergBLE
Posted: Fri Feb 12, 2016 5:04 am
by monte
That's a good question...
One thing to consider is there are various asynchronous things going on here so the call to stop the scan may happen while there are some mergBLEDidDiscoverPeripheral messages in the pipeline so they may come in after. So one thing to test is if it stops eventually rather than immediately.
Cheers
Monte
Re: MergEXT -How to stop scanning using MergBLE
Posted: Fri Feb 12, 2016 2:57 pm
by michaeldaleyjl
Monte....after 30 minutes, the scanning continues and my observation is it does not stop. I need a way to stop it, to start a new scan with different UUIDs, so i was relying on it stopping. It appears that the stop scanning is not working.
Do you have an function that is opposite of the Initialize function that could be used to stop all activities immediately?
Re: MergEXT -How to stop scanning using MergBLE
Posted: Mon Feb 15, 2016 2:57 am
by monte
Hmm... OK... have you checked if it is throwing an error?
Code: Select all
try
mergBLEStopScanningForPeripherals
catch e
answer e
end try
Re: MergEXT -How to stop scanning using MergBLE
Posted: Tue Feb 16, 2016 2:41 pm
by michaeldaleyjl
Monte,
No error thrown in the call.
Re: MergEXT -How to stop scanning using MergBLE
Posted: Wed Feb 17, 2016 2:19 am
by monte
OK, this is intriguing... I'll look into it
Re: MergEXT -How to stop scanning using MergBLE
Posted: Tue Mar 01, 2016 4:07 pm
by michaeldaleyjl
Any news on this one?