1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/examples/javascript
Alexandre Abadie c9304ab73b
examples/javascript: update board blacklist
Remove 8 bit and 16 bit based boards because they are automatically excluded by the 32 bit architecture requirement of the jerryscript package
2019-10-30 14:27:02 +01:00
..
main.c pkg/jerryscript: update Javascript example up to date 2018-06-04 16:22:23 +02:00
main.js examples/javascript: adapt to updated jerryscript package 2017-10-23 17:03:23 +02:00
Makefile examples/javascript: update board blacklist 2019-10-30 14:27:02 +01:00
Makefile.ci examples: add stm32f030f4-demo to Makefile.ci 2019-10-21 15:33:48 +02: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..