To run the Edge Gateway code, the prerequisites are given as follows:
- Download the code from GitHub. Samples are in the chapter 2 Iiot-Sample 1 project.
- The Edge Gateway code is in the folder iiot-edge-gateway.
- NPM and Node should be installed.
- To install the application, issue the following command:
npm install
- For this example, we are using socksjs as the client library for WebSocket. SocksJS provides the fallback between WebSockets and HTTP/HTTPS.
- Stomp protocol to send the data between the cloud and gateway.