Difference between revisions of "How to install & execute"

From AMTech WikiDocs
Jump to: navigation, search
(M2MBridge installation)
(Os and core components)
Line 22: Line 22:
 
* Customize the bridge configuration [[Edge_Configuration|bridgeConfig,json]], defining the templateId with the bridge instance from DAP to clone [[Cloud Configuration]]
 
* Customize the bridge configuration [[Edge_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)
 
* Execute node m2mbridge.js (located in the M2MBridge directory)
 +
 +
== The ansible way ==

Revision as of 13:06, 6 May 2016

Os and core components

Manual installation of M2MBridge script

curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
and then:
sudo apt-get install -y nodejs
  • Allow nodejs program to bind to ports under 1024
sudo setcap 'cap_net_bind_service=+ep' /usr/bin/nodejs
  • Installs and configures Bluetooth core libraries
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev

M2MBridge installation

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)

The ansible way