BLE Discovery

Find Information About BLE Devices. This app demonstrates how to discover Bluetooth Low Energy (BLE) devices within communication range of the app, and how to connect to and display data for a device.

You must run this app in Evothings Viewer, or build a Cordova app with the plugin com.evothings.ble. Device with support for Bluetooth 4.0 and Android 4.3 or higher required.

Source code

You can browse the source code for this example at the Evothings GitHub repository

The file index.html is the main file of the app.

What you need

This example runs in Evothings Viewer on Android or iOS.

You need to run the example in Evothings Viewer. Alternatively, you can make a Cordova application if you wish to distribute the app. You then need to include the Cordova plugin com.evothings.ble. Read more in the documentation of the Evothings Viewer.

An iOS device or an Android device with support for Bluetooth 4.0 (which includes BLE) is required. For Android version 4.3 or later is needed. Please note that BLE support on Android is still not fully mature. As a result, you may experience difficulties running this example. If the app stops working, restart Evothings Viewer and/or reset Bluetooth on the device.

You also need at least one BLE device you can work with, for example the TI Bluetooth Smart SensorTag.

How to get up and running

Follow these steps to get started with this example:

  • Run Evothings Workbench on your desktop/laptop computer.
  • Run Evothings Viewer on an Android mobile device and connect to the Workbench.
  • Launch the example "BLE Discovery" from the Workbench window.
  • If you use the TI SensorTag, press the "activate" button on the tag.
  • If everything works, the app should automatically detect BLE devices within range and display device and sensor information.