Search found 196 matches

by Fredrik
11:13, 19 Nov 2015
Forum: Questions and answers
Topic: Different behavior between Evothings Client and native app?
Replies: 4
Views: 42331

Re: Different behavior between Evothings Client and native app?

Point of semantics: the Client is a native app. I assume you refer to a Cordova app you built yourself. You'll need to add the BLE plugin before building your app, using either of these lines: cordova plugin add cordova-plugin-ble cordova plugin add https://github.com/evothings/cordova-ble Also wort...
by Fredrik
12:45, 12 Nov 2015
Forum: Questions and answers
Topic: Confused about versions
Replies: 1
Views: 14452

Re: Confused about versions

Apologies. The Readme file was out of date, but has now been corrected. The plugin supports Cordova 5.

You should not be concered, or need to do anything special. Go ahead and use the plugin! :)
by Fredrik
16:28, 09 Nov 2015
Forum: Questions and answers
Topic: Standalone Cordova BLE scanner
Replies: 5
Views: 51023

Re: Standalone Cordova BLE scanner

The latest version of the plugin is here. You may run "cordova plugin add https://github.com/evothings/cordova-ble".

The Objective-C code which sends advertiesementData is here.
by Fredrik
15:17, 09 Nov 2015
Forum: Questions and answers
Topic: Standalone Cordova BLE scanner
Replies: 5
Views: 51023

Re: Standalone Cordova BLE scanner

"cordova-ble" and "com.evothings.ble" should be the same plugin. It does not depend on any other plugins. Recommended Cordova version is currently 5.4.0. "advertisementData" should be available natively on iOS, if you're using a sufficiently recent version of the plugin...
by Fredrik
09:58, 06 Nov 2015
Forum: Questions and answers
Topic: for loop: connect/do something/disconnect
Replies: 3
Views: 19746

Re: for loop: connect/do something/disconnect

Delays are not the proper way to approach asynchronous programming. Never use setTimeout().

Instead, you must put your code inside the callbacks from functions like rfduinoble.connect().
by Fredrik
10:06, 04 Nov 2015
Forum: Questions and answers
Topic: for loop: connect/do something/disconnect
Replies: 3
Views: 19746

Re: for loop: connect/do something/disconnect

app.connect() is asynchronous, such that app.device will not have been set by the time app.measure is called. Also, calling connect() several times in a for loop will cause lots of trouble, since a second/third/... successful connect will overwrite the app.device from the previous connect. You will ...
by Fredrik
21:56, 03 Nov 2015
Forum: Questions and answers
Topic: How can I connect to the client without WiFI?
Replies: 1
Views: 17197

Re: How can I connect to the client without WiFI?

Yes, if both PC and phone can access the Internet.

Our new version, Evothings 2.0, is designed especially for your situation. Download the new Workbench and the Viewer app. They connect via a cloud-based proxy server.
by Fredrik
17:06, 03 Nov 2015
Forum: Questions and answers
Topic: Charting Components Don't Work
Replies: 5
Views: 29085

Re: Charting Components Don't Work

The file 'evothings-app.css' is a hodgepodge of many different stylesheets. It has not been tested with anything but our unmodified example apps. It is entirely possible that our css file caused your graphs to become invisible. I suggest that you keep it removed. If you still need the styles from it...
by Fredrik
16:46, 03 Nov 2015
Forum: Questions and answers
Topic: Charting Components Don't Work
Replies: 5
Views: 29085

Re: Charting Components Don't Work

Curious. As you may know, we use use vanilla JS and the Canvas element to draw our own graphs, as seen in the TI SensorTag examples. I have a faint memory of trying and failing to get flotr to work. If you use a static data set and drop the rfduino connection, can you make your app work in a regular...
by Fredrik
10:32, 02 Nov 2015
Forum: Questions and answers
Topic: Send Value from Input Number Box to Write Characteristic
Replies: 2
Views: 16987

Re: Send Value from Input Number Box to Write Characteristic

If your number is to be sent as a single byte, I imagine something like this could work:

Code: Select all

new Uint8Array([Number(document.getElementById('ambTemp').value)])

Go to advanced search