You can integrate a Logger plugin with another pinned Reekoh plugin in your instance to generate data logs and send them to any logging platform. To do this, navigate to Pipeline Studio and then locate the category of the plugin you're going to use from the left pane. Drag and drop the plugin to the work space provided. For this example, we'll use the MQTT Gateway plugin.
To configure, double click the plugin and then complete the wizard that follows. Once completed, select the Logging tab and then select the Logger you want to use from the drop-down menu. Click Save.
After you've configured your Gateway plugin, you can add another plugin to synchronize and post the data coming from your gateway. For this example, we'll be using the HTTP Webhooks Connector plugin. Just follow the procedure above (except the Logging part) to configure the plugin.
Once you've added and configured it in your pipeline, connect them by dragging the output terminal of MQTT to the input terminal of HTTP Webhooks. Click Save & Deploy to run your pipeline.
Note: For more info on how to build and configure your pipeline, you may refer to the Basic Starter Guide.
Once your plugins are set, you need to create a connection for your device using a client simulator. For this example, we'll be using MQTTLens. Open the application, and then create a connection for your device by completing the following details:
- Connection name - Supply any name for your connection.
- Hostname - IP address generated upon deployment of your Reekoh pipeline.
- Port - Port number generated upon deployment of your Reekoh pipeline.
- Client ID - Device ID supplied or generated upon registration of your device.
Once completed, click Create Connection.
After your device connection is established, you need to send a JSON data to the MQTT Gateway. Enter the JSON data on the Message field, and then supply a value for Topic. Click Publish to send data to the MQTT Gateway.
You should be able to see the data sent to the webhook endpoint you've provided upon configuration of your HTTP Webhooks plugin.