Software Archive
Read-only legacy content
17061 Discussions

com.evothings.ble

Carlo_M_1
Beginner
840 Views

I am trying to setup a project using com.evothings.ble to access Bluetooth LE functionality.

I have tried following the instructions found at http://evothings.com/forum/viewtopic.php?t=1410 without success.

Is there a sample projects using BLE?

 

 

 

0 Kudos
7 Replies
John_H_Intel2
Employee
840 Views

Does it fail to build when you include the plugin or are you just having issues interfacing with the plugin in your app?

I dont think there is a sample, I have never tried this plugin before.

0 Kudos
PaulF_IntelCorp
Employee
840 Views

Start with the blank Cordova project and then import the code and instructions on that post you reference into that blank project.

0 Kudos
Carlo_M_1
Beginner
840 Views

The project builds, but when I run it, it behaves as if the evothings.ble plugin were not there (no devices listed etc).

If I run the same program through EvoThings workbench, it works fine.

I have noticed that when I import Standard Cordova Plugins, I find related subdirectories in the plugins folder (e.g. org.apache.cordova.battery-status, org.apache.cordova.camera etc).

I cannot find any directory related to the evothings.ble plugin, even if it is listed in the third party plugins section.

0 Kudos
PaulF_IntelCorp
Employee
840 Views

When you say you "run" the app, what do you mean? Third-party plugins won't run in the Emulate tab, Test tab or Debug tab. You have to actually build the app to see those plugins work. See this doc: https://software.intel.com/en-us/xdk/docs/intel-xdk-debug-and-test-overview#RemoteChromeDevTools

0 Kudos
Carlo_M_1
Beginner
840 Views

I actually compile the app, download it from the Intel server and install it on the phone (Samsung Galaxy S5).

0 Kudos
PaulF_IntelCorp
Employee
840 Views

Having no idea how that code works, I'm afraid I can't help much. I recommend you work with the developers of the code to understand what is necessary to make it work.

0 Kudos
Alex_J_2
Beginner
840 Views

Dear Carlo,

I only recently found this your post, and by now you've hopefully solved your issue by other means, while for anyone reading this thread I hope to add some info here.

Evothings is the maintainer of a Cordova BLE plugin and the easy-ble.js library for simplified Bluetooth Smart development. We're successfully built the BLE demos using both command line tools and build services like cordova.build.com without flaws, new examples are also added. We'd love to work more closely with the Intel XDK, while we have had some knowledge of this system, this opportunity has passed us by until now.

The precompiled Viewer app holds a BLE plug-in, and several other plugins preinstalled, so you can test your project there without compiling anything. See complete list here:

Cordova Plugins

Evothings Viewer comes pre-packaged with the following Cordova Plugins.

Note that the JavaScript source files for the plugins are packaged into the Evothings Viewer app. You don't need to explicitly include these files in your HTML code, they are included automatically with cordova.js.

Bluetooth

Evothings Bluetooth Low Energy (BLE) Plugin 
Bluetooth Serial Plugin (available in Evothings Viewer for Android only) 

Network plugins (WiFi connectivity)

chrome.system.network 
chrome.socket (deprecated) 
chrome.sockets.tcp 
chrome.sockets.tcpServer 
chrome.sockets.udp 

Eddystone Beacons and iBeacon

Evothings Eddystone Plugin 
Cordova iBeacon Plugin 

Estimote Beacons and Nearables

Estimote Cordova Plugin 

Background Notifications

Cordova Local Notification Plugin 

Standard Cordova plugins

Battery Status 
Camera 
Console 
Device 
Device Motion (Accelerometer) 
Device Orientation (Compass) 
Dialogs 
Geolocation 
Globalization 
InAppBrowser 
Network Information (Connection) 
Statusbar 
Vibration 
Legacy Whitelist 

0 Kudos
Reply