Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - iia

Pages: [1]
1
General Discussion / New JavaScript Bindings for Test
« on: February 18, 2014, 16:50:18 »
Hei Tinkerers,

We have finished working on the new Javascript bindings which will support both browser and Node.JS. Currently for testing only the Node.JS version is available.

The bindings are already in NPM registry.

First of all, you need to have a working Node.JS installation and NPM installed on your system (better if they are updated to the latest version).

Then you can install the bindings using the following command,
Code: [Select]
sudo npm -g install tinkerforge
You must make sure that the environment variable `NODE_PATH` is in your env list. This is usually pointing to `/usr/local/lib/node_modules/`.

After that you should be able to try out all the examples found in the attached archive with the following command,
Code: [Select]
node <exmaple_to_execute.js>
Don't forget to change the UID and network parameters depending on the setup you are testing on.

Have fun trying out the new bindings and it would be very much appreciated if you post your findings and feedback on this post.


Cheers,
Ishraq

2
General Discussion / New Perl Bindings Beta Test
« on: December 15, 2013, 01:25:57 »
Hei people,

I am a new employee at Tinkerforge and recently I have been working on a new perl binding. Attached are the compressed files of the binding in current state.

Directory Structure:
  • api
  • bindings
  • examples

api: Contains the main api files.
bindings: Contains the device class files.
examples: Contains examples to get an idea of the API usage.

This API requires that your system's perl installation has the latest Thread::Queue perl module.

One can update this via CPAN,

Code: [Select]
sudo cpan

and then on the CPAN console,

Code: [Select]
upgrade Thread::Queue

Note the two lines at the beginning of the example scripts,

Code: [Select]
use lib '../api';
use lib '../bindings';

Change these two lines accordingly to point to the api and bindings directories (if you changed/moved the files).

While using the examples don't forget to change the device and their UIDs according to your setup and the same for the host.

Try the beta API out and report findings, bugs, suggestions etc here.

Pages: [1]