Page 1 of 1

Newer version of BLE Discovery for Workbench 2.0.0 Alpha?

Posted: 05:30, 26 Aug 2015
by mangopudding
Hi there.

Is there a newer version of BLE Discovery?

I noticed there's some code changes from the package in Workbench 1.2 to 2.0.

It's not working anymore. :(

- Simon.

Re: Newer version of BLE Discovery for Workbench 2.0.0 Alpha?

Posted: 09:32, 26 Aug 2015
by alex
Yup thanks for the heads-up, you're 100% right, hence in an effort to improved, it was broken instead.
Tested with an older example (distributed with Evothings Studio 1.1.4, by drag-dropping its
index.html into the Studio Alpha worked fine on all my phones.

We'll add a buxfixed version for the next iteration, until then please use the stable example as mentioned above. You
can also find it here on Github.
https://github.com/evothings/evothings-examples/tree/master/examples/ble-discovery

Re: Newer version of BLE Discovery for Workbench 2.0.0 Alpha?

Posted: 10:17, 26 Aug 2015
by Fredrik
Alex' link leads to the latest version, which is currently broken. Until it's fixed, here's the old, working version:
https://github.com/evothings/evothings-examples/tree/cffcaaf2293374fa355658aecd85abb43c362d20/examples/ble-discovery

Re: Newer version of BLE Discovery for Workbench 2.0.0 Alpha?

Posted: 01:32, 27 Aug 2015
by mangopudding
Hi there.

I taught my daughter (she's only 9) on how to use file comparison in in TextWrangler on the Mac and compare the source code between the two packages as well as the errors in JavaScript Workbench.

She tried using this snippet of code from the old package and placed it in the new package. It worked! :lol:

Code: Select all

// Bind Event Listeners
//
// Bind any events that are required on startup. Common events are:
// 'load', 'deviceready', 'offline', and 'online'.
app.bindEvents = function()
{
   document.addEventListener('deviceready', this.onDeviceReady, false);
};


She's a happy camper now!

Re: Newer version of BLE Discovery for Workbench 2.0.0 Alpha?

Posted: 12:11, 29 Aug 2015
by micke

Re: Newer version of BLE Discovery for Workbench 2.0.0 Alpha?

Posted: 12:14, 29 Aug 2015
by micke
@mangopudding Amazed to hear about your daughter! Perhaps you would like to do a blogpost and/or video about your coding adventures? We would be happy to feature it :)
Very best, Mikael