Difference between revisions of "How to install & execute"
From AMTech WikiDocs
(→Os and core components) |
(→Os and core components) |
||
Line 9: | Line 9: | ||
** Or Alternatively add this repository 'deb https://deb.nodesource.com/node_5.x xenial main' with: | ** Or Alternatively add this repository 'deb https://deb.nodesource.com/node_5.x xenial main' with: | ||
**: <code>apt-add-repository 'deb https://deb.nodesource.com/node_5.x xenial main'</code> | **: <code>apt-add-repository 'deb https://deb.nodesource.com/node_5.x xenial main'</code> | ||
− | **: Then run apt-get update and apt-get install nodejs | + | **: Then run <code>apt-get update</code> and <code>apt-get install nodejs</code> |
==M2MBridge installation== | ==M2MBridge installation== |
Revision as of 21:14, 5 May 2016
Os and core components
- Ansible M2MBridge script
- Installs Ubuntu OS
- Installs and configures Bluetooth core libraries
- sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
- Give access to node.js binary
- sudo setcap 'cap_net_bind_service=+ep' /usr/bin/nodejs
- Install nodejs version 5 or or higher using nvm Node Version Manager
- Or Alternatively add this repository 'deb https://deb.nodesource.com/node_5.x xenial main' with:
-
apt-add-repository 'deb https://deb.nodesource.com/node_5.x xenial main'
- Then run
apt-get update
andapt-get install nodejs
-
M2MBridge installation
- Clone git repository (https://github.com/AMTechMX/M2MBridge.git)
- Delete at /.../M2MBridge/plugins/xxx unneeded plug-ins (optional)
- Install packages for m2mBridge core and plug-ins (https://docs.npmjs.com/cli/install:)
- Execute npm install --save at:
- M2MBridge directory
- each plug-in directory
M2MBridge execution
- Customize the bridge configuration bridgeConfig,json, defining the templateId with the bridge instance from DAP to clone Cloud Configuration
- Execute node m2mbridge.js (located in the M2MBridge directory)