/node_iotbus

node addon for capi-iotbus

Primary LanguageC++Apache License 2.0Apache-2.0

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