bluetooth-lowenergy

Browser Awareness of Bluetooth Beacons / iBeacons

故事扮演 提交于 2020-01-12 03:33:11
问题 Is there a way to make a browser aware of iBeacon devices in its proximity? Similar to the way HTML5 Geolocation is working... If not would this be something that can be achieved with a browser plug-in that can provide the detail to be consumed by javascript? 回答1: Unfortunately, no. No web browsers have implemented any bridges between beacon detection and JavaScript. I don't think a plugin approach is possible on mobile browsers (either iOS or Android), because neither browser supports

Browser Awareness of Bluetooth Beacons / iBeacons

一世执手 提交于 2020-01-12 03:31:37
问题 Is there a way to make a browser aware of iBeacon devices in its proximity? Similar to the way HTML5 Geolocation is working... If not would this be something that can be achieved with a browser plug-in that can provide the detail to be consumed by javascript? 回答1: Unfortunately, no. No web browsers have implemented any bridges between beacon detection and JavaScript. I don't think a plugin approach is possible on mobile browsers (either iOS or Android), because neither browser supports

What are the steps to get notified by Bluetooth Low Energy (BLE) device?

ぃ、小莉子 提交于 2020-01-11 15:31:47
问题 I am working on a Bluetooth Low Energy (BLE) app. I have a BLE device (scale) which measures weight. I am able to connect with this device. But I am not getting how to read data (weight value) from it. I want to know if my app is connected to any BLE device, so what are the steps to get notified by device in order to get updated data. Okay, following is the for my Activity which I am using.. public class BlogBLEActivity extends Activity implements OnItemClickListener { private final static

is there any ble api in Ndk

荒凉一梦 提交于 2020-01-11 13:13:31
问题 Can we use Ble hardware(Bluetooth low energy) direct from Ndk without any java interface. I am new to NDk. So I don't know about jni, or Ndk. I want to control the bluetooth hardware directly from native code , 回答1: NO and YES. NO: There is no BLE API in ndk. YES: You can talk to BT hardware from C code. In AOSP, look under <>/hardware/libhardware/include/hardware/ there are a bunch of headers. bluetooth.h defines the interface for Android's bluetooth module. Bluedroid implements it. You

is there any ble api in Ndk

此生再无相见时 提交于 2020-01-11 13:13:07
问题 Can we use Ble hardware(Bluetooth low energy) direct from Ndk without any java interface. I am new to NDk. So I don't know about jni, or Ndk. I want to control the bluetooth hardware directly from native code , 回答1: NO and YES. NO: There is no BLE API in ndk. YES: You can talk to BT hardware from C code. In AOSP, look under <>/hardware/libhardware/include/hardware/ there are a bunch of headers. bluetooth.h defines the interface for Android's bluetooth module. Bluedroid implements it. You

Which GATT Profile and Services are used by OBD BLE Adapters like LELink, Automatic, Carista?

核能气质少年 提交于 2020-01-11 10:43:10
问题 I am exploring building apps (Android & iOS) for Car OBD2 Adapters that support BLE (Bluetooth Low Energy). In order for the app to be able to work with such adapters from different vendors, I presume there would be a standard set of GATT profile i.e. Services and Characteristics that these adapters would be using for standard features like engine RPM, Fuel level etc. Is this info available somewhere that I can refer while building the mobile app? 回答1: OBD2 BLE adapters don't use any fixed

Android BLE GATT Peripheral Mode Notifications

狂风中的少年 提交于 2020-01-11 07:47:13
问题 I'm trying to set up an app to behave as a BLE peripheral device using the Android 5.0 (21) api. So far, I've set up the server, got advertising and connections working, set up custom GATT services and characteristics, and can read and write between the peripheral device and other testing devices. Now I'm trying to add notifications to a few of the parameters but simply put; they're not working. When defining these characteristics, they include the notify property: BluetoothGattService

Writing data to Bluetooth LE characteristic in Android

怎甘沉沦 提交于 2020-01-11 05:25:09
问题 Although similar questions have been asked but it's slightly different. I know how to pass data to a connected BLE device but I think I'm doing something wrong for which I need help. The code below contains all the methods from my class that is extending BroadcastReceiver. I scan and connect to a device specified by `PEN_ADDRESS`. In `onServicesDiscovered` method I look for a service whose `UUID` contains `abcd`. Then I loop through the characteristics of this services and look for three

Bluetooth 4.0 (low energy) API for windows desktop C# application

喜夏-厌秋 提交于 2020-01-11 05:13:26
问题 I am looking for a way to interface with an Adafruit bluefruit LE (nRF8001 chipset) board, using c# in a windows desktop app (From what I've seen, I cannot use the Windows.Devices namespace without hacking it in.) The device is properly paired to my tablet and seems to have no problems there, I'm just looking for a way to receive data from it in my program. There has to be a way to do this, I cant think that Microsoft would limit using bluetooth to metro apps only, I just cant find it. 回答1:

Android 7.0 ble scan no result

好久不见. 提交于 2020-01-10 04:12:19
问题 When I start ble(Bluetooth Le) scan for seconds, then stop scan. Then start, then stop... after about 5-8 Loops, the start action will be No effect ,this means no scan record can be received. 1.This condition only appears on Android 7.0 or above(7.1.1); 2.I have tried two scan method: BluetoothAdapter.startLeScan() and Scanner.startScan(), no difference . private void scanToggle(final boolean enable) { mScanHandler.removeCallbacks(scanTask); if (enable) { TelinkLog.i("ADV#scanner#startScan");