Search found 196 matches

by Fredrik
12:20, 19 Feb 2016
Forum: Questions and answers
Topic: What is device uuid ? when I am trying to run bulimix painter on laptop.
Replies: 2
Views: 7580

Re: What is device uuid ? when I am trying to run bulimix painter on laptop.

device.uuid is just an alphanumeric string. The format is different from platform to platform. You should be able to enter any string of your choosing.

However, you will probably also need to enter the same string on the MQTT server, so that it will recognize your client.
by Fredrik
11:15, 19 Feb 2016
Forum: General discussion
Topic: how to use easyble functions in custom cordava project
Replies: 4
Views: 13552

Re: how to use easyble functions in custom cordava project

You don't connect to services, only to devices. Once connected to a device, you may write to (or read from) characteristics and descriptors.
by Fredrik
03:55, 06 Feb 2016
Forum: Questions and answers
Topic: ESP8266 receivedata
Replies: 1
Views: 6140

Re: ESP8266 receivedata

I assume you mean that your function app.receivedData() is never called.

You'll then need to add this line to the end of the app.js file:

Code: Select all

chrome.sockets.tcp.onReceive.addListener(function(info) { app.receivedData(info.data); });
by Fredrik
05:56, 29 Jan 2016
Forum: Questions and answers
Topic: Bluno Hello World
Replies: 2
Views: 7770

Re: Bluno Hello World

Our BLE plugin is named "cordova-plugin-ble". That's the one you'll need.
by Fredrik
07:17, 20 Jan 2016
Forum: Questions and answers
Topic: Write to a ble unit
Replies: 6
Views: 11623

Re: Write to a ble unit

OK, so if you have the javascript string "0b5ac7b1206a15531553038715530187", then that's too long for BLE writing, because there's a limit of 20 bytes per characteristic.

Perhaps you should treat it as hex bytes, like so:

data = new Uint8Array([0x0b, 0x5a, 0xc7, ...])
by Fredrik
20:39, 19 Jan 2016
Forum: Questions and answers
Topic: Simple UART BLE App
Replies: 1
Views: 6246

Re: Simple UART BLE App

Our arduino-ble example uses a form of BLE UART. Check out its app.js file. The functions "on", "off", "write", "startReading" and "getServices" will be of interest.
by Fredrik
20:34, 19 Jan 2016
Forum: Questions and answers
Topic: Graph Data from BLE in Real-Time
Replies: 1
Views: 6136

Re: Graph Data from BLE in Real-Time

Yes, it is! :)

For example, we have a TI SensorTag Demo you might like.
by Fredrik
20:29, 19 Jan 2016
Forum: Questions and answers
Topic: Write to a ble unit
Replies: 6
Views: 11623

Re: Write to a ble unit

I'll try to help, but I'm a bit confused. The value you want to write seems to be identical to the characteristic's UUID. Is that correct? The function you've written takes the parameter "resultCode", assumes it is a string, then writes the ASCII representation of that string to the charac...
by Fredrik
20:47, 22 Dec 2015
Forum: Questions and answers
Topic: How are frequent writeCharactristic() calls handled?
Replies: 4
Views: 11302

Re: How are frequent writeCharactristic() calls handled?

Does wC() return asynchronously, and register the callback to be called when the value actually gets written? Yes. It also depends a bit on the remote device. There are two types of characteristic write settings: with and without response. The remote decides which one must be used. In the first cas...
by Fredrik
00:04, 22 Dec 2015
Forum: Questions and answers
Topic: How are frequent writeCharactristic() calls handled?
Replies: 4
Views: 11302

Re: How are frequent writeCharactristic() calls handled?

The cordova-ble plugin queues up all writes. The next pending write is executed when the remote device's response arrives. Queing more writes over time than the system can process will cause increasingly old data to be written to the remote, and eventually cause an out-of-memory crash. I suggest you...

Go to advanced search