1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/examples/javascript
Martine Lenders 2fbd228f12 examples: only whitelist a few essential boards (dirty hack)
This is a dirty hack proposed by @kaspar030 offline (with slight
adaptations) to allow Murdock to build properly tonight. @kaspar030
revert if the issue is fixed, @miri64 close this one if it isn't merged
tonight.

Right now Murdock fails randomly for some boards, because it doesn't has
the `xxd` tool installed.
2017-11-07 21:01:49 +01:00
..
main.c examples/javascript: adapt to updated jerryscript package 2017-10-23 17:03:23 +02:00
main.js examples/javascript: adapt to updated jerryscript package 2017-10-23 17:03:23 +02:00
Makefile examples: only whitelist a few essential boards (dirty hack) 2017-11-07 21:01:49 +01:00
README.md examples/javascript: adapt to updated jerryscript package 2017-10-23 17:03:23 +02:00

About

This example shows how to write IoT applications using javascript.

Acknowledgement

This example is based on Jerryscript which does all the heavy lifting, providing full ECMAScript 5.1 profile on your IoT device (kudos guys!).

Caveats

  • currently, the only actual function available is "print"

How to use

Just put your javascript code in "main.js" (check the example). The file will automatically be included when compiling the application, which will execute the file right after booting.

How to run

Type make flash term.

Note: you may have to press RESET on the board (after the flash) if the board reboots faster than the terminal program can start..