Edge Gateway triggering alerts

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.
WebSocket itself does not provide any message transfer protocol, hence using stomp over WebSocket solves that issue. Stomp is a generic protocol to send messages. In our example, we are using JSON ...

Get Industrial Internet Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.