Fogwing Industrial Cloud

fogwing logo
MQTT Service Providers

Fundamentals in Connecting MQTT with Fogwing IoT Hub.

MQTT Service Providers

Disclaimer: This blog is a republished copy of the article already published on (

The below article is written by Sarvesh Gupta , who is instrumental in developing IoT Automation products.

Internet of Things is an emerging opportunity for making human and machines connected for future. MQTT is the most common protocol to make things to connect with any IoT platform to publish data. To experience the MQTT connection with IoT platform, we will use MQTT.fx client tool and Fogwing IIoT Platform.

Fogwing is an Industrial IoT platform that enables any edge computing devices to connect with cloud and send meta and processed data for larger data analyses. Fogwing supports the MQTT protocol-based integration to send the data from devices. If you want to know more about Fogwing IIoT Platform and its feature, visit

Now you may want to simulate your edge devices to IoT platform integration through MQTT client program and Fogwing Community without having any devices; To simulate the connection, you can use MQTT.fx client desktop application.

In this blog, we will walk you through the sending of device data from MQTT.fx to Fogwing Platform.

Setup Fogwing Industrial IoT Account

  1. Sign up for Fogwing Platform (login if you already have an account)
  2. Following the instructions to create application,
  3. Create edge configuration
  4. Finally, create an IoTHub Access. Fogwing should send client id credentials by email.
  5. Click on “view” in IoTHub Access that you have just created and note down all the credentials. (Note: your password will not appear here)

Setup MQTT Client Configuration

  1. Download and install MQTT.fx
  2. Configure the Connection Profile for MQTT.fx
  3. Broker Address:
  4. Broker Port: 8883
  5. Client Id: Use your client id generated

◦ Go to User Credentials: Use your username and password.

◦ Finally go to SSL/TLS: Click on Enable SSL/TLS and choose CA signed server certificate.

• Now click on Connect to connect with Fogwing MQTT Broker

• Enter the topic that you have got from Fogwing IoTHub Access (Note: Do not use any other topic otherwise you will be disconnected from the connection). All the setup is completed now.

Publishing Data to MQTT Server

You can start publishing data to Fogwing IoThub (MQTT broker). Before publishing the data, you need to be mindful of a few things. Fogwing supports JSON format of data for processing. Therefore, data should be in JSON format as appeared below. Also, it should have client_id and dev_eui in proper key value pair.

Example of Sample Data:

{“dev_eui” : “1011121314151617”, “client_id”: “xxx-xxx-xxx-xxx”, “payload”:{“Moisture” :”87″, “Frequency” : “462”, “Temperature” : “60.5”, “Humidity” : “85”}}

Analyze your Data at Fogwing IIoT Platform

After successful publishing, you can login to your Fogwing Enterprise Cloud and go to Data log page to view all your data published.

Please note that the above exercise is for simulation of edge devices to Fogwing IoT Cloud communication. You can modify the data format to add additional parameters in case you want to prepare your IoT solution design.

Scroll to Top