Page 1 of 1

MergBLE on OS X Sierra 10.12.5

Posted: Tue Jun 20, 2017 7:38 pm
by n.allan
Hello. Does MergBLE work on OS X Sierra? If I try to initialise it, it just throws an error that it cannot find the command. I am using business edition Livecode. I have tried copying the bundle to "My Livecode" and "My LiveCode/Extentions" but still no joy. I found a MergAV example on the forum and it seems to run OK.

Re: MergBLE on OS X Sierra 10.12.5

Posted: Wed Jun 21, 2017 12:13 am
by monte
Hi @n.allan

Could you provide the following:
- which version of LiveCode are you using?
- which version of mergBLE are you using?

In any of the newer versions of LiveCode you should not need to do any installation of mergBLE.

Cheers

Monte

Re: MergBLE on OS X Sierra 10.12.5

Posted: Wed Jun 21, 2017 7:53 am
by n.allan
I tried it with 9.0.0_dp_7 business. I just downloaded mergext from the store a couple days ago it is version it says 1.1.15

Re: MergBLE on OS X Sierra 10.12.5

Posted: Wed Jun 21, 2017 10:14 am
by monte
Thanks can you post your code please?

Re: MergBLE on OS X Sierra 10.12.5

Posted: Wed Jun 21, 2017 4:56 pm
by n.allan

Code: Select all

on startBluetooth
   mergBLEInitialize
   scanBluetooth
end startBluetooth

on scanBluetooth
   mergBLEScanForPeripheralsWithServices
end scanBluetooth

on mergBLEDidDiscoverPeripheral pUUID, pName, pRSSI, pTX, pServiceUUIDS, pManufacturerData
   put pUUID, pName, pRSSI, pTX, pServiceUUIDS, pManufacturerData -- PUT DATA TO MESSAGE BOX
end mergBLEDidDiscoverPeripheral

on stopBluetooth
   mergBLEStopScanningForPeripherals
end stopBluetooth
I would expect my TV, Watch, Phone etc to pop up in the message box because they are all set to visible but nothing is happening.

Re: MergBLE on OS X Sierra 10.12.5

Posted: Thu Jun 22, 2017 12:53 am
by monte
Hmm.... and you are getting an error thrown on

Code: Select all

mergBLEInitialize
?

Re: MergBLE on OS X Sierra 10.12.5

Posted: Thu Jun 22, 2017 10:42 am
by n.allan
Sorry initially when I wrote the post, I had spelt "initialize" incorrectly (debatable), which caused lc to throw an error. But as you can see it has been fixed in the code. Now there are no errors thrown but I know that there are at least 3 BLE devices visible so I would expect a message box to pop up with some of the devices found.

Am I incorrect in that assumption? How do I know that mergBLE is actually working?

Re: MergBLE on OS X Sierra 10.12.5

Posted: Mon Jun 26, 2017 8:55 am
by monte
Hi @n.allan

Do you get different results with the demo stack? You might try using the demo stack on multiple devices/machines.

Cheers

Monte