Page 1 of 1

Success with BLE External

Posted: Sun May 08, 2016 1:42 am
by joel.epsteinBUS31vi
Hi all -

Just thought you might like to know that I've had success using the BLE External. I created a custom LiveCode application to connect to an Arduino with the Bluefruit nRF8001 module. Works seamlessly. If you'd like to see the results of my efforts including schematics and source codes, please visit:
http://www.projectiveart.com/gong

Peace.

Joel

Re: Success with BLE External

Posted: Sun May 08, 2016 9:34 am
by Dixie
:-) Nice...

Re: Success with BLE External

Posted: Sun May 08, 2016 12:07 pm
by bn
Hi Joel,

very cool.

Kind regards
Bernd

Re: Success with BLE External

Posted: Mon May 09, 2016 1:48 am
by joel.epsteinBUS31vi
Thanks, Dixie.

And thanks, again, Bernd, for your optimizations. I've implemented the changes and uploaded the new version to my site. Much better now...

Joel

Re: Success with BLE External

Posted: Mon May 09, 2016 2:24 pm
by peter-b
This is really awesome! Thank you for sharing it!

Re: Success with BLE External

Posted: Tue May 10, 2016 7:21 pm
by dr_mumps
I must be missing something fundamental ... Although I have an Indy license and have loaded the zip file of the "mergExt_Indy_Latest" when I run any of the example stacks using the mergExt externals, I get handling errors ... e.g,: card id 1002: execution error at line 6 (Handler: can't find handler) near "mergBLEInitialize", char 1. " if I remove the "try" in this stack's Gong.livecode "OpenCard" handler

So, I seem to be missing how to "enable" the mergExt externals. Please advise.

Re: Success with BLE External

Posted: Wed May 11, 2016 11:31 am
by Klaus
Hi dr_mumps (Ziegen-Peter? :D )

unfortunately the IDE chokes when it encounters "mobile only" commands!
So the TRY structure is really neccessary, or use an IF END IF:

Code: Select all

...
if the environment = "mobile" then
   mergBLEInitialize...
   ## more mobile only stuff here...
end if
...
Best

Klaus

Re: Success with BLE External

Posted: Tue May 17, 2016 4:03 am
by monte
Really great to see what you are doing! How do you feel about this being turned into a blog post for livecode.com?

Re: Success with BLE External

Posted: Tue May 17, 2016 4:05 am
by monte
@dr_mumps Many of the mergExt externals are mobile only but mergBLE is cross compiled to OS X. It should be being loaded automatically in LC 8.0.0 so if it isn't can you please report that.

Re: Success with BLE External

Posted: Tue May 17, 2016 7:03 pm
by joel.epsteinBUS31vi
monte wrote:How do you feel about this being turned into a blog post for livecode.com?
Thanks, Monte. I couldn't' have done the project without your externals and examples - and actually, I can't say that I've done much more than just combining the expertise of other folks. I don't know much about the blog post thing, but if you think it's appropriate, that's cool.

Peace.

Joel

Re: Success with BLE External

Posted: Wed May 18, 2016 5:09 am
by monte
Hi Joel, I gather Heather either has or will be in touch. It's a great story Joel and it has potential to reach new audiences for LiveCode which is always welcome. Actually it's what I love about LiveCode that if you have the vision for something you can realise it without having to get deep into CoreBluetooth etc.