MergCL problems

This is the place to get technical support and discuss all things to do with MergEXT

Moderators: FourthWorld, heatherlaine, Klaus, robinmiller, monte

Post Reply
uncleb
Posts: 9
Joined: Fri May 20, 2016 4:16 pm

MergCL problems

Post by uncleb » Fri May 20, 2016 4:25 pm

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!

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: MergCL problems

Post by monte » Fri Jun 03, 2016 12:57 pm

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
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Post Reply

Return to “MergEXT”