MergEXT -How to stop scanning using MergBLE
Moderators: FourthWorld, heatherlaine, Klaus, robinmiller, monte
-
- Posts: 4
- Joined: Thu Feb 11, 2016 2:49 am
MergEXT -How to stop scanning using MergBLE
Started scanning with mergBLEScanForPeripheralsWithServices.
Tried stopping the scan with mergBLEStopScanningForPeripherals, but the scanning continues.
What am I doing wrong?
Tried stopping the scan with mergBLEStopScanningForPeripherals, but the scanning continues.
What am I doing wrong?
Re: MergEXT -How to stop scanning using MergBLE
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
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
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
-
- Posts: 4
- Joined: Thu Feb 11, 2016 2:49 am
Re: MergEXT -How to stop scanning using MergBLE
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?
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
Hmm... OK... have you checked if it is throwing an error?
Code: Select all
try
mergBLEStopScanningForPeripherals
catch e
answer e
end try
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
-
- Posts: 4
- Joined: Thu Feb 11, 2016 2:49 am
Re: MergEXT -How to stop scanning using MergBLE
Monte,
No error thrown in the call.
No error thrown in the call.
Re: MergEXT -How to stop scanning using MergBLE
OK, this is intriguing... I'll look into it
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
-
- Posts: 4
- Joined: Thu Feb 11, 2016 2:49 am
Re: MergEXT -How to stop scanning using MergBLE
Any news on this one?