Page 1 of 1

MergCL problems

Posted: Fri May 20, 2016 4:25 pm
by uncleb
Hi,

I'm testing MergCL to see if I can use it with a client. I've got a couple of beacons and have set the UUID and major,minor numbers etc. My problem is that I can only range the beacons if I submit both numbers i.e. I don't seem to be able to say 'range everything with this UUID, regardless of the major/minor number

So this:

Code: Select all

mergCLStartRangingBeaconsInRegion fld "identifier", fld "uuid",2,2
Returns the ;mergCLDidRangeBeacons' message and useful info (via the 'pRangedBeacons' parameter) on a specific beacon. Hurrah! However, I need to look for lots of beacons at once.

But these two examples :

Code: Select all

mergCLStartRangingBeaconsInRegion fld "identifier", fld "uuid"

Code: Select all

mergCLStartRangingBeaconsInRegion fld "identifier", fld "uuid",2
Return the 'mergCLDidRangeBeacons' message but the accompanying 'pRangedBeacons' parameter is empty

Livecode won't let me enter what is shown in the API doc i.e.

Code: Select all

mergCLStartRangingBeaconsInRegion fld "identifier", fld "uuid",
or

Code: Select all

mergCLStartRangingBeaconsInRegion fld "identifier", fld "uuid",1,
as it doesn't like the trailing comma. I'm obviously doing something very stupid here. If anyone can help that would be great!

Re: MergCL problems

Posted: Fri Jun 03, 2016 12:57 pm
by monte
Hi uncleb

For some reason I can now no longer remember I used defaults for these optional parameters of -1 instead of 0 which they should have been... For the moment you can use:

Code: Select all

mergCLStartRangingBeaconsInRegion fld "identifier", fld "uuid",0,0