Binding in Javascript

Hello,

using the provided example[1] I was able to run Javascript engine (Jerryscript) on RIOT.

I want to now bind additional functions to Javascript, for example to be able to start TCP communication using Javascript code.
Can you please refer me to any examples or tutorials where binding functions in Javascript with RIOT is taking place?
Regards,
Manar

Hi Manar,

Hello,

using the provided example[1] I was able to run Javascript engine (Jerryscript) on RIOT.

I want to now bind additional functions to Javascript, for example to be able to start TCP communication using Javascript code.

Great! We would greatly appreciate if you contributed the bindings.

Can you please refer me to any examples or tutorials where binding functions in Javascript with RIOT is taking place?

See sys/js: initial support of RIOT <-> javascript API mapping by kaspar030 · Pull Request #7796 · RIOT-OS/RIOT · GitHub . The PR is unmerged, but it contains what you are looking for.

Regards,

Juan.

Hi Manar,

FYI, complementing this PR, some additional work was done providing more bindings e.g. CoAP bindings as reported in this paper: https://hal.inria.fr/hal-01766610/document

If you look at the code in this branch [1] you should be able to find code that does just that.

Best,

Emmanuel

[1] https://github.com/emmanuelsearch/RIOT/tree/riot.js.demo.iotlab/examples/javascript