To build node_iotbus properly, the iotbus source code iotbus have been built previously.
$ 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
root:~> rpm -Uvh --nodeps --force /tmp/capi-iotbus-*.rpm
root:~> rpm -Uvh --nodeps --force /tmp/node-iotbus-*.rpm
root:~> sync
- 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