Validating the REST log appender

Next, we will validate the REST log appender. Head back to the REST-Logger folder, where we have created our Node.js application to receive the data from the Kaa REST log appenders:

  1. Start the Node.js server by running the following command:
node server.js
  1. We should see a message from the server on port 3000. Now, we wait for the data from the device to go to the Kaa IoT middleware and then to this server.
  1. Once the data starts coming in, we can see the logs as shown here:

We can build any application based on this data, as required, or simply attach a web socket using socket.io (https://socket.io/). You ...

Get Enterprise Internet of Things Handbook 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.