jiehwan-park / node_iotbus

node addon for capi-iotbus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node_iotbus : node addon for capi-iotbus

To build node_iotbus properly, the iotbus source code iotbus have been built previously.

Build the node_iotbus source code

$ git clone https://github.com/tizen-artik/node_iotbus.git
$ git clone https://github.com/tizen-artik/iotbus.git
$ gbs build -A armv7l --include-all

Install rpm files to target device

root:~> rpm -Uvh --nodeps --force /tmp/capi-iotbus-*.rpm
root:~> rpm -Uvh --nodeps --force /tmp/node-iotbus-*.rpm
root:~> sync

Run node js (ex. i2c.js)

  • Copy i2c.js file to target device using sdb push command.
  • i2c.js is located in modules/i2c directory.
  • Run i2c.js file at target device.
[Host]
XXX@XXX:~/node_iotbus$ sdb push modules/i2c/i2c.js /usr/tmp/

[Target]
owner:/usr/tmp> node i2c.js 

About

node addon for capi-iotbus

License:Apache License 2.0


Languages

Language:C++ 81.8%Language:JavaScript 8.5%Language:CMake 7.6%Language:Python 1.4%Language:Shell 0.8%