1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/examples/javascript/README.md

24 lines
746 B
Markdown
Raw Normal View History

2017-03-22 16:20:07 +01:00
### About
This example shows how to write IoT applications using javascript.
2017-03-22 16:20:07 +01:00
### Acknowledgement
This example is based on [Jerryscript](https://github.com/jerryscript-project/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"
2017-03-22 16:20:07 +01:00
### How to use
2017-03-22 16:20:07 +01:00
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.
2017-03-22 16:20:07 +01:00
### How to run
2017-03-22 16:20:07 +01:00
Type `make flash term`.
2017-03-22 16:20:07 +01:00
Note: you may have to press `RESET` on the board (after the flash) if the board
reboots faster than the terminal program can start..