MOAT js is a server side javascript running on MOAT IoT runtime environment.
API Document
MOAT js API is described at the following page.
Local testing environment
You can run MOAT js code on your local machine for testing purpose.
- Install Node.js
- Install npm
- Install moatjs-stub module with npm
npm install moat
See
this page for detail.
Limitations
- The size of a single js file shall be limited. The max size differs depending on respective runtime environment.
- The size of outgoing communication data at once shall be limited. The max size is also different per each runtime environment.
Note that the limitation above will be changed in the future.