MergBLE on OS X Sierra 10.12.5

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

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, monte

MergBLE on OS X Sierra 10.12.5

Postby n.allan » Tue Jun 20, 2017 7:38 pm

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.
n.allan
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 127
Joined: Mon Mar 12, 2007 12:06 pm

Re: MergBLE on OS X Sierra 10.12.5

Postby monte » Wed Jun 21, 2017 12:13 am

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
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 1558
Joined: Fri Jan 13, 2012 1:47 am

Re: MergBLE on OS X Sierra 10.12.5

Postby n.allan » Wed Jun 21, 2017 7:53 am

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
n.allan
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 127
Joined: Mon Mar 12, 2007 12:06 pm

Re: MergBLE on OS X Sierra 10.12.5

Postby monte » Wed Jun 21, 2017 10:14 am

Thanks can you post your code please?
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 1558
Joined: Fri Jan 13, 2012 1:47 am

Re: MergBLE on OS X Sierra 10.12.5

Postby n.allan » Wed Jun 21, 2017 4:56 pm

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.
n.allan
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 127
Joined: Mon Mar 12, 2007 12:06 pm

Re: MergBLE on OS X Sierra 10.12.5

Postby monte » Thu Jun 22, 2017 12:53 am

Hmm.... and you are getting an error thrown on
Code: Select all
mergBLEInitialize
?
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 1558
Joined: Fri Jan 13, 2012 1:47 am

Re: MergBLE on OS X Sierra 10.12.5

Postby n.allan » Thu Jun 22, 2017 10:42 am

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?
n.allan
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 127
Joined: Mon Mar 12, 2007 12:06 pm

Re: MergBLE on OS X Sierra 10.12.5

Postby monte » Mon Jun 26, 2017 8:55 am

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
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 1558
Joined: Fri Jan 13, 2012 1:47 am


Return to MergEXT

Who is online

Users browsing this forum: No registered users and 1 guest

cron