What you will need
Make sure that you have prepared the following points:
- Node.js 6.14.0 (Recommended version 8.3.0) or newer Long Term Support (LTS) version is installed on the device – see https://nodejs.org/en/blog/release/v8.3.0/ for more information.
- Access the Edge Device via Remote Terminal.
- Access the edge device remotely (Access the Edge Device via Remote Terminal).
- Download the SDK on the edge device. In the terminal type in the following command and press return.
- Extract and install the SDK. In the terminal type in the following commands and press return.
sudo tar -zxvf teamviewer-iot-sdk-nodejs-v1.0.3.tar.gz
sudo npm install
- Optional: run the SDKs’ examples. In the terminal type in the following command and press return.
sudo node ./examples/create_metric.js